-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from udit-uniyal/main
Updated action.yml and Readme.md
- Loading branch information
Showing
2 changed files
with
24 additions
and
48 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,45 +1,19 @@ | ||
# install-action | ||
|
||
Github actions to install vulnerability scanner. | ||
# Automate Container Image Security Scanning with AccuKnox GitHub Action | ||
|
||
## Learn More | ||
|
||
- [About Accuknox](https://www.accuknox.com/) | ||
|
||
## Inputs | ||
|
||
```yaml | ||
inputs: | ||
dockerfile_context: | ||
description: 'The context of the Dockerfile to use for building the image.' | ||
required: true | ||
default: 'Dockerfile' | ||
endpoint: | ||
description: 'The URL of the CSPM panel to push the scan results to.' | ||
required: true | ||
default: 'cspm.demo.accuknox.com' | ||
token: | ||
description: 'The token for authenticating with the CSPM panel.' | ||
required: true | ||
tenant_id: | ||
description: 'The ID of the tenant associated with the CSPM panel.' | ||
required: true | ||
repository_name: | ||
description: 'Docker image repository name' | ||
required: true | ||
tag: | ||
description: 'Add version tag to the repository' | ||
required: true | ||
default: '${{ github.run_id }}' | ||
severity: | ||
description: "Allows selection of severity level for the scan. Options include UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL. If specified, the scan will target vulnerabilities of the selected severity level." | ||
required: false | ||
default: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL' | ||
code: | ||
description: "Values '0' and '1' are accepted. '0' is the default value, which indicates that the pipeline will not be halted if the specified severity is found, while '1' indicates that the pipeline will stop if a specified severity level is detected." | ||
required: false | ||
default: '0' | ||
``` | ||
| Input Values | Description | Optional/Required | Default Values | | ||
|---------------------|-------------------------------------------------------------------------------------------------------|-------------------|-----------------------------| | ||
| dockerfile_context | The context of the Dockerfile to use for building the image. | Optional | Dockerfile | | ||
| endpoint | The URL of the CSPM panel to push the scan results to. | Optional | `cspm.demo.accuknox.com` | | ||
| token | The token for authenticating with the CSPM panel. | Required | - | | ||
| tenant_id | The ID of the tenant associated with the CSPM panel. | Required | - | | ||
| repository_name | Docker image repository name. | Required | - | | ||
| tag | Add version tag to the repository. | Optional | `${{ github.run_id }}` | | ||
| severity | Allows selection of severity level for the scan. Options include UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL. | Optional | `UNKNOWN, LOW, MEDIUM, HIGH, CRITICAL` | | ||
| exit_code | Specifies pipeline behavior upon detecting specified severity level. '0' (continue) or '1' (halt). | Optional | 0 | | ||
|
||
## Usage | ||
|
||
|
@@ -71,6 +45,7 @@ Click on Generate: | |
repository_name: | ||
endpoint: #Optional | ||
tag: #Optional | ||
exit_code: #Optional | ||
severity: #Optional | ||
dockerfile_context: #Optional | ||
``` | ||
|
@@ -100,7 +75,7 @@ jobs: | |
- name: Run AccuKnox CSPM Scan | ||
uses: accuknox/[email protected] | ||
with: | ||
token: | ||
tenant_id: | ||
repository_name: | ||
token: ${{ secrets.TOKEN }} | ||
tenant_id: ${{ secrets.TENANT_ID }} | ||
repository_name: ${{ github.repository }} | ||
``` |
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