diff options
| author | Henry <mail@henrygressmann.de> | 2026-09-16 12:09:21 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-09-16 12:09:21 +0200 |
| commit | 4c2d39f4c9eb00f3cbf9745e6f06a4af03a68c19 (patch) | |
| tree | 88b8f9c32658ad84556168e167fcdcf3f1b54092 /.github/workflows | |
| parent | 6a7a6af9e25d0daa49bb142c85a298c5c81e76a4 (diff) | |
ci: add audit action
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/audit.yaml | 46 | ||||
| -rw-r--r-- | .github/workflows/test.yaml | 7 |
2 files changed, 51 insertions, 2 deletions
diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml new file mode 100644 index 0000000..fa785ca --- /dev/null +++ b/.github/workflows/audit.yaml @@ -0,0 +1,46 @@ +name: Audit dependencies + +on: + pull_request: + paths: + - ".github/workflows/audit.yaml" + - "**/Cargo.toml" + - "Cargo.lock" + push: + branches: [main, next] + paths: + - ".github/workflows/audit.yaml" + - "**/Cargo.toml" + - "Cargo.lock" + schedule: + # Every Monday at 12:30 UTC + - cron: "30 12 * * 1" + workflow_dispatch: + +permissions: + contents: read + +jobs: + scan-pr: + if: github.event_name == 'pull_request' + permissions: + actions: read + contents: read + security-events: write + uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc # v2.6.0 + with: + runs-on: ubuntu-24.04 + upload-sarif: false + scan-args: --lockfile=./Cargo.lock + + scan: + if: github.event_name != 'pull_request' + permissions: + actions: read + contents: read + security-events: write + uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@a345acffa64b0eaede81a3d9aae6141214d9c8fc # v2.6.0 + with: + runs-on: ubuntu-24.04 + fail-on-vuln: false + scan-args: --lockfile=./Cargo.lock diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e623fef..ed441cd 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,6 +8,9 @@ on: schedule: - cron: "0 0 * * 0" +permissions: + contents: read + jobs: build-wasm: name: Build wasm @@ -18,7 +21,7 @@ jobs: submodules: true persist-credentials: false - name: Install Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1 + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 with: toolchain: nightly components: rust-src @@ -92,7 +95,7 @@ jobs: persist-credentials: false - name: Install Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1 + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 with: toolchain: ${{ matrix.rust }} rustflags: "" |
