This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(STONEINTG-728): add a help doc to enable snyk
Signed-off-by: Sonam Maheshwari <[email protected]>
- Loading branch information
Showing
8 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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
44 changes: 44 additions & 0 deletions
44
...T/pages/how-to-guides/testing_applications/enable_snyk_check_for_a_product.adoc
This file contains 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,44 @@ | ||
= Enable snyk task for a product | ||
|
||
== Description: | ||
|
||
The sast-snyk-check task uses Snyk Code tool to perform Static Application Security Testing (SAST) for Snyk, a popular cloud-native application security platform. | ||
|
||
Snyk's SAST tool uses a combination of static analysis and machine learning techniques to scan an application's source code for potential security vulnerabilities, including common issues such as SQL injection, cross-site scripting (XSS), and code injection attacks. | ||
|
||
> NOTE: This task is executed only if the user provides a Snyk token stored in a secret in their namespace. The name of the secret then needs to be supplied in the `snyk-secret` pipeline parameter. | ||
|
||
== Steps to enable snyk: | ||
|
||
. Sign up/login at https://app.snyk.io/ | ||
. Obtain Snyk token by navigating to the Account / General / Auth Token section | ||
|
||
image::account_settings.png[alt=Snyk account settings] | ||
|
||
. Enable Snyk Code | ||
|
||
image::enable_snyk_code.png[alt=Enable snyk code] | ||
|
||
. Add this secret to your workspace | ||
.. Edit Component and Add Secret | ||
... Select snyk-secret for name | ||
... Paste snyk token into value text box | ||
|
||
image::add_snyk_secret.png[alt=Add snyk secret] | ||
|
||
. Update .tekton yaml files to specify the secret name | ||
|
||
image::snyk_yaml_example.png[alt=Snyk yaml example] | ||
|
||
. Snyk check should now be enabled on the pipeline | ||
|
||
image::snyk_enabled.png[alt=Snyk enabled] | ||
|
||
== To obtain a Red Hat Snyk token via Service Account(Only for Red Hat Internal users) | ||
|
||
Follow the steps given https://docs.engineering.redhat.com/display/PRODSEC/How+to+create+and+use+a+Snyk+token+via+a+Service+account[here] | ||
|
||
== Additional links: | ||
|
||
* https://snyk.io/product/snyk-code/ | ||
* https://snyk.io/ |