Setup the required secrets.
- Navigate to Repo Settings -> Secrets and Variables -> Actions
- Select Manage Organization Secrets then Add organization secret and add the following:
- SLS_CLIENT_ID & SLS_CLIENT_SECRET - used to authenticate to the StartLeft Container Registry.
- Then add a New repository secret
- SLS_SCAN_KEY - The Scan Key can be found under Product Data Sources -> Start Left Scanner -> Scan Key (It is also available on the Asset details page for the repository.)
Setup the Github Action
- Create the sls.yml under Actions -> New Workflow then choose set up a workflow yourself
- Replace main.yml with a meaningful name eg. sls-scan.yml
- Paste the script below into the file contents:
- Commit changes.
- The scan job starts automatically upon detecting the committed sls.yml file.