File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,12 +55,46 @@ jobs:
5555 ocm-labels : ${{ toJSON(matrix.args.ocm-labels) }}
5656 extra-tags : latest
5757
58- sast-lint :
59- uses : gardener/cc-utils/.github/workflows/sastlint-ocm.yaml@master
60- with :
61- go-version : ' 1.25'
62- linter : gosec
63- run : .ci/verify
64- permissions :
65- contents : read
66-
58+ verify :
59+ runs-on : ubuntu-latest
60+ steps :
61+ - uses : actions/setup-go@v5
62+ with :
63+ go-version : ' 1.25'
64+ - uses : gardener/cc-utils/.github/actions/trusted-checkout@master
65+ - name : run-verify
66+ run : |
67+ set -eu
68+ mkdir /tmp/blobs.d
69+ .ci/verify |& tee /tmp/blobs.d/verify-log.txt
70+ tar czf /tmp/blobs.d/gosec-report.tar.gz gosec-report.sarif
71+ tar czf /tmp/blobs.d/verify-log.tar.gz -C /tmp/blobs.d verify-log.txt
72+ - name : add-reports-to-component-descriptor
73+ uses : gardener/cc-utils/.github/actions/export-ocm-fragments@master
74+ with :
75+ blobs-directory : /tmp/blobs.d
76+ ocm-resources : |
77+ - name: gosec-report
78+ relation: local
79+ access:
80+ type: localBlob
81+ localReference: gosec-report.tar.gz
82+ labels:
83+ - name: gardener.cloud/purposes
84+ value:
85+ - lint
86+ - sast
87+ - gosec
88+ - name: gardener.cloud/comment
89+ value: |
90+ we use gosec (linter) for SAST scans
91+ see: https://github.com/securego/gosec
92+ - name: test-results
93+ relation: local
94+ access:
95+ type: localBlob
96+ localReference: verify-log.tar.gz
97+ labels:
98+ - name: gardener.cloud/purposes
99+ value:
100+ - test
You can’t perform that action at this time.
0 commit comments