Skip to content

Fix snyk-security.yml: upgrade actions, bump Node to 20, fix SARIF upload - #71

Draft
Mapuppy09 with Copilot wants to merge 3 commits into
latestfrom
copilot/fix-copilot-issue-another-one
Draft

Fix snyk-security.yml: upgrade actions, bump Node to 20, fix SARIF upload#71
Mapuppy09 with Copilot wants to merge 3 commits into
latestfrom
copilot/fix-copilot-issue-another-one

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown

The Snyk security workflow was failing due to a combination of deprecated action versions, Node 18 incompatibility with packages requiring ^20.17.0, a missing --sarif-file-output flag, and an unconditional SARIF upload that errored when the file wasn't produced.

Changes

  • Node 18 → 20 — resolves engine mismatch (npm-registry-fetch@^19, etc.) that caused Snyk to report package.json/package-lock.json out of sync
  • actions/checkout / actions/setup-node v3 → v4 — v3 targets deprecated Node 20 runner
  • github/codeql-action/upload-sarif v2 → v3 — v2 is deprecated and blocked the step
  • Add --sarif-file-output=snyk.sarif to Snyk args — required for the file to actually be written
  • Guard upload step with hashFiles('snyk.sarif') != '' — prevents "Path does not exist" failure when Snyk exits non-zero without producing the file

@snyk-io

snyk-io Bot commented Aug 15, 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.

…dition

Co-authored-by: Mapuppy09 <144494139+Mapuppy09@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with Copilot functionality Fix snyk-security.yml: upgrade actions, bump Node to 20, fix SARIF upload Aug 15, 2026
Copilot AI requested a review from Mapuppy09 August 15, 2026 02:49
…-pr.yml

Co-authored-by: Mapuppy09 <144494139+Mapuppy09@users.noreply.github.com>
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