Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflows updated from AnchorFree/workflows:b96a441 #27

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ jobs:
pull-requests: write
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Scanning the dockerfile
uses: reviewdog/action-hadolint@v1.34.1
uses: reviewdog/action-hadolint@v1.39.0
with:
reporter: github-pr-review
filter_mode: file

16 changes: 8 additions & 8 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
Expand All @@ -32,22 +32,22 @@ jobs:
run: git lfs checkout

- name: Run Trivy vulnerability scanner in repo mode (table)
uses: aquasecurity/trivy-action@0.10.0
uses: aquasecurity/trivy-action@0.19.0
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'table'

- name: Run Trivy vulnerability scanner in repo mode (sarif)
uses: aquasecurity/trivy-action@0.10.0
uses: aquasecurity/trivy-action@0.19.0
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

Expand All @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
Expand All @@ -72,21 +72,21 @@ jobs:
run: |
docker build -t ${{ github.sha }} .
- name: Run Trivy vulnerability scanner in image mode (table output)
uses: aquasecurity/trivy-action@0.10.0
uses: aquasecurity/trivy-action@0.19.0
with:
image-ref: '${{ github.sha }}'
ignore-unfixed: true
format: 'table'

- name: Run Trivy vulnerability scanner in image mode (sarif output)
uses: aquasecurity/trivy-action@0.10.0
uses: aquasecurity/trivy-action@0.19.0
with:
image-ref: '${{ github.sha }}'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'