Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Drop unnecessary instruction
Browse files Browse the repository at this point in the history
When I went to enable a snyk scan for a project of mine today, I didn't
have to do this part.
  • Loading branch information
ralphbean committed Mar 22, 2024
1 parent 0d3f5d7 commit 033ed52
Showing 1 changed file with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,10 @@ You should also include the name of your secret in the *snyk-secret* pipeline pa
... From the *Secret name* drop-down menu, select *snyk-secret*.
... Paste your Snyk token into the *Upload the file with value for your key or paste its contents* field.
... Click *Add secret* to save it.
. Update your `.tekton` YAML files to specify your Snyk secret.
.. From your GitHub repository, update the `pull-request.yaml` files in your `.tekton` directory; for example: link:https://github.com/sonam1412/devfile-sample-python-basic/blob/main/.tekton/devfile-sample-python-basic-iea1-pull-request.yaml[devfile-sample-python-basic/.tekton/devfile-sample-python-basic-rhq8-pull-request.yaml]
.. Add new lines to the code in your YAML files to include *snyk-secret*, as shown in the following example:
+
.Example
+
[source,yaml]
--
- default: "false"
description: Execute the build with network isolation
name: hermetic
type: string
- default: ""
description: Build dependencies to be prefetched by Cachi2
name: prefetch-input
type: string
- default: "false"
description: Java build
name: java
type: string
- default: "snyk-secret"
description: Snyk Token Secret Name
name: snyk-secret
type: string
--

You've enabled the Snyk task for your build pipeline.

[role="_additional-resources"]
== Additional resources

For more information about Snyk, see link:https://snyk.io/product/snyk-code/[the Snyk website].
For more information about Snyk, see link:https://snyk.io/product/snyk-code/[the Snyk website].

0 comments on commit 033ed52

Please sign in to comment.