Skip to content

Commit

Permalink
Fix yaml in CI workflow (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Feb 29, 2024
1 parent 984fdd4 commit 18dea27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:

- name: Run Snyk to check Docker image for vulnerabilities
continue-on-error: true
run:
run: |
KOSLI_ATTACHMENTS=/tmp/kosli
rm -rf "${KOSLI_ATTACHMENTS}" || true
mkdir -p "${KOSLI_ATTACHMENTS}
Expand All @@ -192,7 +192,11 @@ jobs:
--policy-path=.snyk | tee "${KOSLI_ATTACHMENTS}/snyk.container.scan.log
- name: Attest Snyk results to Kosli Trail
run:
run: |
env | grep KOSLI_ATTACHMENTS
KOSLI_ATTACHMENTS=/tmp/kosli
ls -al "${KOSLI_ATTACHMENTS}
kosli attest snyk "${IMAGE_NAME}"
--name=dashboard.snyk-container-scan
--scan-results=snyk.container.scan.json
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/main_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:

- name: Run Snyk to check Docker image for vulnerabilities
continue-on-error: true
run:
run: |
KOSLI_ATTACHMENTS=/tmp/kosli
rm -rf "${KOSLI_ATTACHMENTS}" || true
mkdir -p "${KOSLI_ATTACHMENTS}
Expand All @@ -182,7 +182,10 @@ jobs:
--policy-path=.snyk | tee "${KOSLI_ATTACHMENTS}/snyk.container.scan.log
- name: Attest Snyk results to Kosli Trail
run:
run: |
env | grep KOSLI_ATTACHMENTS
KOSLI_ATTACHMENTS=/tmp/kosli
ls -al "${KOSLI_ATTACHMENTS}
kosli attest snyk "${IMAGE_NAME}"
--name=dashboard.snyk-container-scan
--scan-results=snyk.container.scan.json
Expand Down

0 comments on commit 18dea27

Please sign in to comment.