Skip to content
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

Upload Snyk report to snyk.io on push #1256

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Aug 6, 2024

The PR pipeline already runs Snyk, but doesn't upload the results
anywhere. Run Snyk in the push pipeline as well and upload the results
to snyk.io.

Note: we should not upload to Snyk from the PR pipeline. Each PR would
overwrite the Snyk results from other PRs. By uploading only in the push
pipeline, the results will at least always reflect the state in 'main'.

The results can be found in the 'konflux-ci/build-definitions' project
in the Snyk organization associated with the Snyk token used by the
pipeline (currently the 'developer-red-hat-trusted-application-pipeline'
organization).

@chmeliik
Copy link
Contributor Author

chmeliik commented Aug 6, 2024

Note: we should not upload to Snyk from the PR pipeline. Each PR would overwrite the Snyk results from other PRs.

Tested in #1248

The secret in the namespace where this pipeline runs is called
'snyk-secret', not 'snyk-shared-secret'. Remove the param since
'snyk-secret' is the default value.

Signed-off-by: Adam Cmiel <[email protected]>
The PR pipeline already runs Snyk, but doesn't upload the results
anywhere. Run Snyk in the push pipeline as well and upload the results
to snyk.io.

Note: we should not upload to Snyk from the PR pipeline. Each PR would
overwrite the Snyk results from other PRs. By uploading only in the push
pipeline, the results will at least always reflect the state in 'main'.

The results can be found in the 'konflux-ci/build-definitions' project
in the Snyk organization associated with the Snyk token used by the
pipeline (currently the 'developer-red-hat-trusted-application-pipeline'
organization).

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik chmeliik enabled auto-merge September 16, 2024 09:12
@chmeliik chmeliik added this pull request to the merge queue Sep 16, 2024
Merged via the queue into konflux-ci:main with commit 87e2717 Sep 16, 2024
13 checks passed
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.

3 participants