Skip to content

Commit

Permalink
Merge pull request #13 from saritasa-nest/feature/update-trivy
Browse files Browse the repository at this point in the history
feat: update trivy check
  • Loading branch information
darliiin authored Nov 25, 2024
2 parents 5a5a36d + e1f6c10 commit 1a66d47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/actions/secrets-checks/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,24 @@ runs:
'{github: {repo: $repo, headRefPush: $headRefPush, headRefPR: $headRefPR, actor: $actor, eventName: $eventName, eventNumber: $eventNumber, commitSha: $commitSha}}' \
> data.json
- name: install trivy
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.29.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
skip-setup-trivy: true
env:
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"

- name: add trivy failure check results to data file
shell: bash
Expand All @@ -74,13 +82,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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2024-11-25

[v3.1]

- [associated PR](https://github.com/saritasa-nest/saritasa-github-actions/pull/13)
- Update `trivy`check

## 2024-10-30

[v2.9-dev.1]
Expand Down

0 comments on commit 1a66d47

Please sign in to comment.