Use this action to scan a Git repository with the Snyk static application security testing (SAST) scanner, which detects security flaws and provides suggested code fixes.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The Snyk organization name. |
|
String |
Yes |
The Snyk client secret. |
|
String |
No |
The language of your Git repository code base. Refer to the supported languages below. |
Supported language | Input format |
---|---|
C |
|
C+ |
|
C# |
|
Go |
|
Java |
|
JavaScript |
|
PHP |
|
Python |
|
Ruby |
|
TypeScript |
|
In your YAML file, add:
- name: Scan with Snyk SAST
uses: cloudbees-io/snyk-sast-scan-code@v1
with:
orgname: "snyk_username"
token: ${{ secrets.SNYK_SECRET }}
language: "LANGUAGE_JS"
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.