GitHub Actions: Setup
To use SecureCI with GitHub Actions, you first need to add your credentials as repository secrets. This ensures your tokens are stored securely and are not exposed in your workflow files.
Prerequisites
- A SecureCI account and a created project.
- Your
User ID,Project ID, andAPI Tokenfrom the SecureCI dashboard.
Storing Credentials as Secrets
For each repository where you want to run SecureCI scans, you must add the following secrets:
- Navigate to your GitHub repository and go to Settings > Secrets and variables > Actions.
- Click New repository secret.
- Create a secret named
SECURECI_API_TOKENand paste your API Token as the value. - (Optional) If you plan to scan private GitHub repositories, you also need a GitHub Personal Access Token (PAT) with the
reposcope. Create a secret namedPAT_TOKENwith your PAT as the value.
Tip: We recommend using distinct secrets for your API Token and PAT to maintain security and clarity.