Skip to content

Conversation

@j-luong
Copy link
Contributor

@j-luong j-luong commented Jan 23, 2026

Pull Request Submission Checklist

  • Follows CONTRIBUTING guidelines
  • Commit messages
    are release-note ready, emphasizing
    what was changed, not how.
  • Includes detailed description of changes
  • Contains risk assessment (Low | Medium | High)
  • Highlights breaking API changes (if applicable)
  • Links to automated tests covering new functionality
  • Includes manual testing instructions (if necessary)
  • Updates relevant GitBook documentation (PR link: ___)
  • Includes product update to be announced in the next stable release notes

What does this PR do?

This PR fixes two issues related to .snyk ignores created via the snyk ignore command:

  • ignores that included a reason and/or expiry are now being ignored as expected
  • ignores that used an absolute path instead of a relative path are now being ignored as expected

Where should the reviewer start?

How should this be manually tested?

In a project with Snyk Code issues:

  • Create ignore with a valid expiry
    • snyk ignore --expiry=3026-1-1 --reason="testing" --file-path=<absolute/path/to/file>
    • Run snyk code test
    • Validate ignored file is ignored
  • Create an expired ignore
    • snyk ignore --expiry=1999-1-1 --reason="testing" --file-path=<absolute/path/to/file>
    • Run snyk code test
    • Validate ignored file is not ignored

What's the product update that needs to be communicated to CLI users?

Ignores created via the snyk ignore command are now correctly applied if an expiry is set or if using an absolute filepath

@j-luong j-luong requested review from a team as code owners January 23, 2026 12:54
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