Skip to content

Commit

Permalink
CI: report pr evidence to kosli
Browse files Browse the repository at this point in the history
  • Loading branch information
arstanaly committed Nov 10, 2023
1 parent 8d9b826 commit 39db951
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
permissions:
id-token: write
contents: write
pull-requests: read
steps:

- uses: actions/checkout@v3
Expand Down Expand Up @@ -101,7 +102,7 @@ jobs:
run:
kosli create flow cli
--description "Kosli CLI"
--template "artifact,snyk-code-scan,snyk-docker-scan,smoke-test"
--template "artifact,snyk-code-scan,snyk-docker-scan,smoke-test,pull-request"


- name: Report Docker image to Kosli
Expand Down Expand Up @@ -194,3 +195,14 @@ jobs:
--name smoke-test \
--compliant=$SMOKE_TEST_PASSED \
--flow cli
- name: Report pull-request evidence to Kosli (production)
env:
KOSLI_NAME: "pull-request"
KOSLI_FINGERPRINT: ${{ env.FINGERPRINT }}
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}
KOSLI_ORG: kosli
KOSLI_FLOW: cli
run:
kosli report evidence artifact pullrequest github
--github-token ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 39db951

Please sign in to comment.