Github Actions
Last updated
Last updated
This GitHub Actions workflow integrates to conduct vulnerability scans on your GitHub projects. Sec1 is a powerful tool that helps identify security vulnerabilities within your codebase.
To use Sec1 in your workflow, you need to obtain an API key. Follow these steps:
Navigate to Sec1 Website:
Visit and log in using your GitHub credentials.
Generate API Key:
In the "Settings" section, locate the "API key" and click on "Generate API key."
Copy the API Token:
Copy the generated API token.
Add API Key to GitHub Repository Secrets:
Add the copied API key to your GitHub repository secrets. Refer to for creating secrets at the repository level.
If you are working at the organization level, follow the instructions to create secrets for your organization.
Set API Key Variable in GitHub Actions:
In your GitHub Actions workflow file (e.g., .github/workflows/main.yml
), set the apikey
variable using the secret you created:
Below is an example of using the Sec1 Security Action in your GitHub Actions workflow. This example runs the Sec1 scan on each push to the repository.
In your repository, create .github folder & within .github folder create main.yaml. Copy below code in main.yaml file to add Sec1 Security.
Sec1 scan supports setting up threshold values. If the scan reports vulnerabilities exceeding the specified thresholds, Sec1 Security will mark the build as failed. You can set threshold values for different severities such as critical, high, medium, and low.
Now, your GitHub Actions workflow is set up to leverage Sec1 for continuous security checks in your projects.