Skip to content

Commit 720dee2

Browse files
committed
chore: add checkout when running trivy
1 parent 300fc60 commit 720dee2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/security-analysis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
contents: read
1515
security-events: write
1616
steps:
17-
- name: Checkout repository
17+
- name: Checkout
1818
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
1921
- name: Initialize CodeQL
2022
uses: github/codeql-action/init@v1
2123
with:
@@ -30,6 +32,10 @@ jobs:
3032
actions: read
3133
security-events: write
3234
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
with:
38+
fetch-depth: 0
3339
- name: Run Trivy vulnerability scanner
3440
uses: aquasecurity/trivy-action@master
3541
with:

0 commit comments

Comments
 (0)