Fail local-testing check rather than add nag comment #9458
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snyk PR | |
on: | |
pull_request: | |
branches: '**' | |
permissions: | |
contents: read | |
issues: write | |
pull-requests: write | |
jobs: | |
snyk: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'sfc-gh-snyk-sca-sa' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- name: Checkout Action | |
uses: actions/checkout@v4 | |
with: | |
repository: snowflakedb/whitesource-actions | |
token: ${{ secrets.whitesource_action_token }} | |
path: whitesource-actions | |
- name: Snyk Pull Request Scan Check | |
uses: ./whitesource-actions/snyk-pr | |
env: | |
pr_title: ${{ github.event.pull_request.title }} | |
with: | |
jira_token: ${{ secrets.jira_token_public_repo }} | |
gh_token: ${{ secrets.github_token }} | |
amend: false |