Skip to content

Commit

Permalink
build: try copying .grype.yaml to $HOME
Browse files Browse the repository at this point in the history
.grype.yaml in root of checkout seems to not work.

Try copying to $HOME.

from:
https://stackoverflow.com/questions/70923388/create-a-file-in-github-action

[skip travis]
  • Loading branch information
rouilj committed Sep 25, 2023
1 parent 1c38d0d commit 697c4d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/anchore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
run: docker pull python:3-alpine; docker build . --file scripts/Docker/Dockerfile --tag localbuild/testimage:latest
- name: List the Docker image
run: docker image ls
- name: copy grype.yaml into $home
run: cp .grype.yaml $HOME/
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
uses: anchore/scan-action@24fd7c9060f3c96848dd1929fac8d796fb5ae4b4 # v3.3.6
id: scan
Expand Down

0 comments on commit 697c4d1

Please sign in to comment.