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

test trivy file #87

Closed
wants to merge 8 commits 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
2 changes: 1 addition & 1 deletion .github/workflows/autoupdate-pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# on demand
workflow_dispatch:

# Request from Org admin to allow Github Action workflow to make PR under Settings > Actions > General
# Request from Org admin to allow Github Action workflow to make PR under Settings > Actions > General
permissions:
actions: read
checks: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarqube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
build:
name: Build
runs-on:
- ${{ inputs.default_runner_override_label }}
- ${{ inputs.default_runner_override_label }}
- ${{ inputs.runner_label }}
steps:
- uses: actions/checkout@v2
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ jobs:
submodules: ${{ inputs.enable_submodules }}

- name: Run Trivy vulnerability scanner in IaC mode
uses: aquasecurity/trivy-action@0.19.0
uses: aquasecurity/trivy-action@0.20.0
with:
scan-type: 'config'
scan-type: 'fs'
hide-progress: false
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '0'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'

Expand All @@ -338,6 +338,12 @@ jobs:
run: |
sed -i 's#git::https:/##g' trivy-results.sarif

- name: Show the file
shell: bash
run: |
ls -l trivy-results.sarif
cat trivy-results.sarif

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
Loading