This repo demonstrates how to combine multiple code scanning tools using Github Actions and Github Advanced Security.
- Fork this repository into your account
- You will need to enable Actions in this repository. Go to
Actions
tab and click onI understand my workflows, go ahead and enabled them
button. - Even though the workflow exists, you will need to approve it for your repo. On the next screen, select `Org Level Security Checks' workflow.
- You should see
This scheduled workflow is disabled because scheduled workflows are disabled by default in forks.
warning. Click onEnable workflow
button next to it. - For code scanning to work, Advanced Security needs to have a base scan. Make a minor change to README file and commit to the main branch. This will kick off a scan which you can monitor in Actions tab. Once completed, you'll see a number of vulnerabilities picked up in Security tab.
- Go ahead, add an insecure code and create a Pull Request.
The following repos are leveraged for scanning: