-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I am trying to cache the security database of my docker container scanner.
Log:
Post cached scan db
##[warning]The process '/bin/tar' failed with exit code 2
Post job cleanup.
/bin/tar -cz -f /home/runner/work/_temp/28e557d6-3aeb-4359-9a00-d29f2722deda/cache.tgz -C /home/runner/work/iron-alpine/iron-alpine/vulndb .
/bin/tar: ./db: Cannot open: Permission denied
/bin/tar: ./vuln-list: Cannot open: Permission denied
/bin/tar: Exiting with failure status due to previous errors
##[warning]The process '/bin/tar' failed with exit code 2
Config:
dockerscan:
name: image security scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: docker build
run: docker build . --file Dockerfile --tag image
- name: cached scan db
uses: actions/cache@preview
with:
path: vulndb/
key: ${{ runner.os }}-vulndb
- name: run security scan
run: |
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)/vulndb/":/root/.cache/ \
aquasec/trivy --severity HIGH,CRITICAL,MEDIUM --no-progress --auto-refresh --ignore-unfixed --exit-code 1 --cache-dir /root/.cache/ image
Metadata
Metadata
Assignees
Labels
No labels