Skip to content

Commit

Permalink
ci: change permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Oct 3, 2024
1 parent 945d057 commit c25f4c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/trivy-action-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
scan-ref: '.'
cache-dir: "./cache"

- name: check
run: |
ls -ahl ./cache
ls -ahl ./cache/db
## Trivy-db uses `0600` permissions.
## But `action/cache` doesn't use `root` user
## So we need to change the permissions before caching the database.
- name: change permissions for trivy.db
run: chmod 0644 ./cache/db/trivy.db

0 comments on commit c25f4c1

Please sign in to comment.