Skip to content

Commit b05670a

Browse files
committed
add rust dependency scan
1 parent 884477c commit b05670a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/vulnerability-scan.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ jobs:
5252
severity-cutoff: low
5353
output-format: table
5454

55+
rust-dependency-scan:
56+
runs-on: ubuntu-22.04
57+
steps:
58+
- name: Checkout repository
59+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
60+
61+
- name: Scan Rust dependencies with cargo-audit
62+
uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # v2.0.0
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
working-directory: bottlecap
66+
5567
build-and-scan-images:
5668
runs-on: ubuntu-22.04
5769
strategy:
@@ -152,7 +164,7 @@ jobs:
152164
output-format: table
153165

154166
retry:
155-
needs: [trivy-scans, grype-scans, build-and-scan-images]
167+
needs: [trivy-scans, grype-scans, rust-dependency-scan, build-and-scan-images]
156168
if: failure() && fromJSON(github.run_attempt) < 2
157169
runs-on: ubuntu-22.04
158170
permissions:
@@ -165,7 +177,7 @@ jobs:
165177
run: gh workflow run retry-workflow.yml -F run_id=${{ github.run_id }}
166178

167179
notify:
168-
needs: [trivy-scans, grype-scans, build-and-scan-images]
180+
needs: [trivy-scans, grype-scans, rust-dependency-scan, build-and-scan-images]
169181
if: failure() && fromJSON(github.run_attempt) >= 2
170182
runs-on: ubuntu-22.04
171183
steps:

0 commit comments

Comments
 (0)