Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ jobs:
run:
snyk code test --sarif --policy-path=.snyk --sarif-file-output=snyk-code.json --prune-repeated-subdependencies

# - name: Report Snyk Code to Kosli
# if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && (success() || failure()) && inputs.report_results }}
# env:
# KOSLI_API_TOKEN: ${{ secrets.kosli_reporting_api_token }}
# run: kosli attest snyk
# --name snyk-code-test
# --flow ${{ inputs.FLOW_NAME }}
# --trail ${{ inputs.TRAIL_NAME }}
# --scan-results snyk-code.json
# --org ${{ inputs.KOSLI_ORG }}
- name: Report Snyk Code to Kosli
if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && (success() || failure()) && inputs.report_results }}
env:
KOSLI_API_TOKEN: ${{ secrets.kosli_reporting_api_token }}
run: kosli attest snyk
--name snyk-code-test
--flow ${{ inputs.FLOW_NAME }}
--trail ${{ inputs.TRAIL_NAME }}
--scan-results snyk-code.json
--org ${{ inputs.KOSLI_ORG }}

snyk-dependency-test:
if: ${{ inputs.run_snyk }}
Expand Down Expand Up @@ -230,14 +230,14 @@ jobs:
run:
snyk test --sarif --policy-path=.snyk --sarif-file-output=snyk-dependency.json --prune-repeated-subdependencies

# - name: Report Snyk Test to Kosli
# if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && (success() || failure()) && inputs.report_results }}
# env:
# KOSLI_API_TOKEN: ${{ secrets.kosli_reporting_api_token }}
# run: kosli attest snyk
# --name snyk-dependency-test
# --flow ${{ inputs.FLOW_NAME }}
# --trail ${{ inputs.TRAIL_NAME }}
# --scan-results snyk-dependency.json
# --org ${{ inputs.KOSLI_ORG }}
- name: Report Snyk Test to Kosli
if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) && (success() || failure()) && inputs.report_results }}
env:
KOSLI_API_TOKEN: ${{ secrets.kosli_reporting_api_token }}
run: kosli attest snyk
--name snyk-dependency-test
--flow ${{ inputs.FLOW_NAME }}
--trail ${{ inputs.TRAIL_NAME }}
--scan-results snyk-dependency.json
--org ${{ inputs.KOSLI_ORG }}