Skip to content

Conversation

jpower432
Copy link
Member

@jpower432 jpower432 commented May 20, 2025

Types of changes

  • Hot fix (emergency fix and release)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation (change which affects the documentation site)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Release (develop -> main)

Quality assurance (all should be covered).

  • My code follows the code style of this project.
  • Documentation for my change is up to date?
  • My PR meets testing requirements.
  • All new and existing tests passed.
  • All commits are signed-off.

How To Test

If using act, fill in below:

act version : 0.2.71

act command

gh act -W .github/workflows/python-test.yml -j snyk

Summary

Currently snyk scans with pyproject.toml are only supported with poetry. This solution installs dependencies into a virtual environment and generates a temporary requirements.txt for scanning.

Caveat: This solution does not differentiate between direct and transitive dependencies nor dev/optional dependencies.

Note: This requires a new repository secret to store the token

Key links:

Before you merge

  • Ensure it is a 'squash commit' if not a release.
  • Ensure CI is currently passing
  • Check sonar. If you are working for a fork a maintainer will reach out, if required.

jpower432 added 3 commits May 20, 2025 18:43
Currently snyk scans with pyproject.toml are only supported
with poetry. This solution installs dependencies into
a virtual environment and generates a temporary requirements.txt
for scanning.

Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Ensures the cleanup step is always run
without supressing errors

Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
@jpower432 jpower432 marked this pull request as ready for review June 4, 2025 15:39
@jpower432 jpower432 requested a review from a team as a code owner June 4, 2025 15:39
@degenaro
Copy link
Collaborator

Is there a readily accessible link that will show the list of (license) problems when the pipeline fails? Perhaps this PR should not be merged until current licence problems are fixed, so that future (non-snyk) PRs don't also get flagged.

@jpower432
Copy link
Member Author

@degenaro I was able to add the dependencies triggering the failure to this issue #1895. They don't appear to have a CNCF licensing exception, so I think the next step would be to review to see if they can be replaced.

Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.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.

OSPS-VM-05.02: Proposal for SCA policy enforcement tooling or approach OSPS-VM-05.01: Create an SCA findings policy check in release pipeline
2 participants