Skip to content

Commit

Permalink
ci: use sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Oct 3, 2024
1 parent 36a08cf commit 2ab7803
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test-cache-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4.1.6

- name: test
run: |
whoami
- name: Generate image list digest
id: image-digest
run: |
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/trivy-action-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,8 @@ jobs:
name: Build
runs-on: ubuntu-20.04
steps:
## 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: test
run: |
whoami
- name: Checkout code
uses: actions/checkout@v4
## 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: test
run: |
whoami
- name: Restore trivy cache
uses: actions/cache@v4
with:
Expand All @@ -47,4 +35,4 @@ jobs:
run: |
whoami
ls -ahl ./cache/db
chmod 0644 ./cache/db/trivy.db
sudo chmod 0644 ./cache/db/trivy.db

0 comments on commit 2ab7803

Please sign in to comment.