Skip to content

Commit

Permalink
fix: avoid linting-logs to be purged by git-operations
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Oct 10, 2024
1 parent cb42323 commit a3f08e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: linting-logs # targetpath: bandit.tar.gz
path: /tmp/linting-logs

- name: Google-Auth
id: auth
Expand Down Expand Up @@ -313,9 +314,9 @@ jobs:
--file component-descriptor.yaml
echo "adding linting-evidence resource"
linting_evidence=bandit.tar.gz
linting_evidence=/tmp/linting-logs/bandit.tar.gz
linting_digest=$(sha256sum ${linting_evidence} | cut -d' ' -f1)
cp bandit.tar.gz /tmp/dist/blobs.d/${linting_digest}
cp ${linting_evidence} /tmp/dist/blobs.d/${linting_digest}
cat << EOF > linting_evidence.ocm-resource
name: sast-linting-evidence
Expand Down

0 comments on commit a3f08e6

Please sign in to comment.