Security audit of Rust dependencies #274
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Security audit of Rust dependencies | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| push: | |
| paths: | |
| - '**/Cargo.toml' | |
| - '**/Cargo.lock' | |
| permissions: | |
| contents: read | |
| issues: write # to create issues | |
| checks: write # to create checks | |
| jobs: | |
| audit: | |
| if: ${{ vars.SCHEDULED_MISC_DAILIES }} | |
| runs-on: ubuntu-latest | |
| name: Rust deps (${{ matrix.branch }}) | |
| strategy: | |
| matrix: | |
| branch: | |
| - master | |
| - rel/dnsdist-2.0.x | |
| - rel/rec-5.3.x | |
| - rel/rec-5.2.x | |
| - rel/rec-5.1.x | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| submodules: recursive | |
| persist-credentials: false | |
| ref: ${{ matrix.branch }} | |
| - name: Check recursor's Rust library dependencies (settings) | |
| if: ${{ ! startsWith(matrix.branch, 'rel/dnsdist-') && (matrix.branch == 'rel/rec-5.1.x' || matrix.branch == 'rel/rec-5.2.x') }} | |
| uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| working-directory: pdns/recursordist/settings/rust | |
| - name: Check recursor's Rust library dependencies (rec-rust-lib) | |
| if: ${{ ! startsWith(matrix.branch, 'rel/dnsdist-') && (matrix.branch != 'rel/rec-5.1.x' && matrix.branch != 'rel/rec-5.2.x') }} | |
| uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| working-directory: pdns/recursordist/rec-rust-lib/rust | |
| - name: Check DNSdist's Rust library dependencies | |
| if: ${{ ! startsWith(matrix.branch, 'rel/rec-') }} | |
| uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| working-directory: pdns/dnsdistdist/dnsdist-rust-lib/rust |