Skip to content

Fix Snyk Security Scan job failure by generating SARIF and updating upload action - #72

Draft
Mapuppy09 with Copilot wants to merge 2 commits into
latestfrom
copilot/fix-github-actions-job
Draft

Fix Snyk Security Scan job failure by generating SARIF and updating upload action#72
Mapuppy09 with Copilot wants to merge 2 commits into
latestfrom
copilot/fix-github-actions-job

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown

The scheduled Snyk Security Scan workflow was failing in Actions due to two workflow-level issues: SARIF upload used a deprecated CodeQL action version, and the upload step expected snyk.sarif even when it was not produced.

  • Workflow compatibility update

    • Switched SARIF upload action from github/codeql-action/upload-sarif@v2 to @v3 to align with current GitHub Actions requirements.
  • Ensure SARIF is actually produced

    • Updated the Snyk scan invocation to emit SARIF output:
      • --sarif-file-output=snyk.sarif
  • Prevent missing-file upload failures

    • Added a file-existence guard to the upload step so it only runs when snyk.sarif is present.
- name: Run Snyk scan
  uses: snyk/actions/node@master
  with:
    args: --severity-threshold=high --sarif-file-output=snyk.sarif

- name: Upload Snyk results
  uses: github/codeql-action/upload-sarif@v3
  if: always() && hashFiles('snyk.sarif') != ''
  with:
    sarif_file: snyk.sarif

@snyk-io

snyk-io Bot commented Aug 21, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Co-authored-by: Mapuppy09 <144494139+Mapuppy09@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions job Fix Snyk Security Scan job failure by generating SARIF and updating upload action Aug 21, 2026
Copilot AI requested a review from Mapuppy09 August 21, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants