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

feat: update trivy check #13

Merged
merged 5 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
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
18 changes: 8 additions & 10 deletions .github/actions/secrets-checks/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@ runs:
'{github: {repo: $repo, headRefPush: $headRefPush, headRefPR: $headRefPR, actor: $actor, eventName: $eventName, eventNumber: $eventNumber, commitSha: $commitSha}}' \
> data.json

- name: manual trivy setup
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't do anything manually here, right?
name it "install trivy"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

uses: aquasecurity/[email protected]
with:
version: v0.56.2

- name: run trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@0.21.0
uses: aquasecurity/trivy-action@0.28.0
if : inputs.enable-trivy-check == 'true'
id: trivy-check
with:
scan-type: "fs"
scan-ref: "."
scan-type: fs
scan-ref: .
format: sarif
exit-code: 1
output: trivy-results.sarif
Expand All @@ -74,13 +79,6 @@ runs:
# notifications about the results of secret checks are generated
jq -s '.[0] * .[1]' trivy-output.json data.json | sponge data.json
echo reactions="confused" > $GITHUB_ENV

- name: test path
shell: bash
if: always()
run: |
echo ${{ github.action_path }}
ls -la ${{ github.action_path }}

- name: run gitleaks check
uses: gitleaks/gitleaks-action@v2
Expand Down