diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3aeae6b1..55289db8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,8 +4,12 @@ updates: directory: / schedule: interval: weekly + cooldown: + default-days: 3 - package-ecosystem: cargo directory: / schedule: interval: weekly + cooldown: + default-days: 3 versioning-strategy: lockfile-only diff --git a/.github/workflows/ci-post-merge.yml b/.github/workflows/ci-post-merge.yml index 11e30ed9..e720da67 100644 --- a/.github/workflows/ci-post-merge.yml +++ b/.github/workflows/ci-post-merge.yml @@ -36,6 +36,8 @@ jobs: run: sudo ifconfig lo0 alias 127.0.0.3 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Free Disk Space if: matrix.target.os == 'ubuntu-latest' @@ -114,6 +116,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust (nightly) uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18b734f4..104ea2a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,8 @@ jobs: run: sudo ifconfig lo0 alias 127.0.0.3 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Free Disk Space if: matrix.target.os == 'ubuntu-latest' @@ -122,6 +124,8 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust (nightly) uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 14edecd6..983da003 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -16,6 +16,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c16c1ffd..984d0c3c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,11 +12,31 @@ concurrency: cancel-in-progress: true jobs: + zizmor: + name: zizmor + permissions: + actions: read + contents: read + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 + with: + advanced-security: false + annotations: true + version: v1.24.1 + fmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 with: @@ -34,6 +54,8 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 with: { components: clippy } @@ -49,6 +71,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust (${{ vars.RUST_VERSION_EXTERNAL_TYPES }}) uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0 @@ -66,4 +90,6 @@ jobs: tool: cargo-check-external-types - name: check external types - run: just check-external-types-all +${{ vars.RUST_VERSION_EXTERNAL_TYPES }} + run: just check-external-types-all +"${RUST_VERSION_EXTERNAL_TYPES}" + env: + RUST_VERSION_EXTERNAL_TYPES: ${{ vars.RUST_VERSION_EXTERNAL_TYPES }} diff --git a/zizmor.yml b/zizmor.yml new file mode 100644 index 00000000..bfd32c72 --- /dev/null +++ b/zizmor.yml @@ -0,0 +1,4 @@ +rules: + dependabot-cooldown: + config: + days: 3