File tree Expand file tree Collapse file tree 2 files changed +20
-18
lines changed
Expand file tree Collapse file tree 2 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ jobs:
210210 secrets : inherit
211211
212212 get-approver-for-production :
213- needs : deploy-production
213+ needs : [setup, deploy-production]
214214 runs-on : ubuntu-latest
215215 steps :
216216 - uses : actions/checkout@v4
@@ -221,4 +221,14 @@ jobs:
221221 with :
222222 gh-audit-log-reader-token : ${{ secrets.READ_AUDIT_LOG }}
223223
224-
224+ - name : Report approval to kosli
225+ run : |
226+ source scripts/lib-jira.sh
227+
228+ kosli attest custom \
229+ --type=approval-github-workflow \
230+ --name release-approval \
231+ --flow ${{ env.KOSLI_FLOW }} \
232+ --trail ${{ needs.setup.outputs.kosli-trail }} \
233+ --attestation-data ${{ steps.get-approver.outputs.approval-json-file }} \
234+ --annotate Approver="${{ steps.get-approver.outputs.approver }}"
Original file line number Diff line number Diff line change @@ -33,19 +33,11 @@ jobs:
3333 --template-file kosli-flow-templates/backend-template.yml
3434
3535
36- # ### Custom attestation types ###
37- # - name: Create veracode-scan-executed attestation type
38- # run:
39- # kosli create attestation-type veracode-scan-executed
40- # --description "Attest that veracode scan was executed"
41- # --schema custom-attestation-types/veracode-scan-schema.json
42- # --jq '.scan_status == "SUCCESS"'
43- #
44- # - name: Create veracode-scan-vulnerability-summary attestation type
45- # run:
46- # kosli create attestation-type veracode-scan-vulnerability-summary
47- # --description "Attest that veracode scan has no vulnerabilities"
48- # --schema custom-attestation-types/veracode-scan-schema.json
49- # --jq '.scan_status == "SUCCESS"'
50- # --jq 'all(.severity_summary[]; . == 0)'
51- # --jq 'all(.gob_summary[]; . == 0)'
36+ # ## Custom attestation types ###
37+ - name : Create approval-github-workflow attestation type
38+ run :
39+ kosli create attestation-type approval-github-workflow
40+ --description "Approval from GitHub workflow"
41+ --schema custom-attestation-types/approval-github-workflow.yml
42+ --jq '.action == "workflows.approve_workflow_job"'
43+ --jq '.actor != ""'
You can’t perform that action at this time.
0 commit comments