Skip to content

Commit 697c4d1

Browse files
committed
build: try copying .grype.yaml to $HOME
.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]
1 parent 1c38d0d commit 697c4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/anchore.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
run: docker pull python:3-alpine; docker build . --file scripts/Docker/Dockerfile --tag localbuild/testimage:latest
4343
- name: List the Docker image
4444
run: docker image ls
45+
- name: copy grype.yaml into $home
46+
run: cp .grype.yaml $HOME/
4547
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
4648
uses: anchore/scan-action@24fd7c9060f3c96848dd1929fac8d796fb5ae4b4 # v3.3.6
4749
id: scan

0 commit comments

Comments
 (0)