-
Notifications
You must be signed in to change notification settings - Fork 7
feat: migrate to using .safety-ignore.yml file
#1215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8de8e08
feat: migrate to using .safety-ignore,yml file
RobPasMue 99cf2cb
docs: add info for dvelopers
RobPasMue 5594455
fix: pre-commit
RobPasMue f8a5a96
chore: adding changelog file 1215.added.md [dependabot-skip]
pyansys-ci-bot 3419c20
chore: adding changelog file 1215.added.md [dependabot-skip]
pyansys-ci-bot ff200d1
feat: allow for custom safety file
RobPasMue 24f5ef6
Merge branch 'feat/improve-vuln-action' of https://github.com/ansys/a…
RobPasMue 31d514a
feat: improve logging
RobPasMue 8245b26
fix: pre-commit
RobPasMue b8f8b83
Merge branch 'main' into feat/improve-vuln-action
RobPasMue 2161ee2
Merge branch 'main' into feat/improve-vuln-action
RobPasMue 4469c4b
Merge branch 'main' into feat/improve-vuln-action
RobPasMue 6bcb269
Merge branch 'main' into feat/improve-vuln-action
SMoraisAnsys ccd5ef1
Merge branch 'main' into feat/improve-vuln-action
moe-ad c431ebf
fix: merge conflict
moe-ad 14811da
Update .safety-ignore.yml
RobPasMue cdaa3fd
Merge branch 'main' into feat/improve-vuln-action
RobPasMue 811847a
fix: handle empty vulnerability list correctly
moe-ad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Copyright (C) 2022 - 2026 ANSYS, Inc. and/or its affiliates. | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # | ||
| # Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| # of this software and associated documentation files (the "Software"), to deal | ||
| # in the Software without restriction, including without limitation the rights | ||
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| # copies of the Software, and to permit persons to whom the Software is | ||
| # furnished to do so, subject to the following conditions: | ||
| # | ||
| # The above copyright notice and this permission notice shall be included in all | ||
| # copies or substantial portions of the Software. | ||
| # | ||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| # SOFTWARE. | ||
|
|
||
| # Safety ignore file for vulnerability checks | ||
| # This file contains vulnerability IDs that are accepted/ignored | ||
| # Format: YAML configuration for Safety CLI | ||
| # Documentation: https://docs.pyup.io/docs/safety-20-policy-file | ||
|
|
||
| security: | ||
| ignore-vulnerabilities: | ||
| # List of vulnerability IDs to ignore | ||
| # Example: | ||
| # 52495: | ||
| # reason: "Accepted vulnerability" | ||
| # expires: null | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # IMPORTANT: migration from `ignored-safety.txt` to `.safety-ignore.yml` | ||
|
|
||
| We have migrated from using `ignored-safety.txt` to `.safety-ignore.yml` for managing ignored | ||
| vulnerabilities. Especially for `ansys/actions` maintainers, make sure that whenever a new | ||
| vulnerability is added to `.safety-ignore.yml`, it is also added to `ignored-safety.txt` until | ||
| the migration is complete. This ensures that the CI checks continue to function correctly | ||
| during the transition period. | ||
|
|
||
| > [!IMPORTANT] | ||
| > The `ignored-safety.txt` file is still required for the consumers of this action to work properly. Old action | ||
| > versions will continue to use `ignored-safety.txt` until repository maintainers upgrade to the latest | ||
| > version of the action that supports `.safety-ignore.yml`. |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Migrate to using \`\`.safety-ignore.yml\`\` file |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.