security-review
Security Code Review using GitHub Actions 🤖.
- SecretScanning: Scan for sensitive information committed to source code.
- CodeScanning: Perform static analysis of source code to identify problem areas.
- Comment: Put review comments on PRs.

This tool allows you to shift-left security in your development environment💪
Usage
Create workflow yaml (.github/workflows/security-review.yaml
) on your repository.
name: Security Code Review on PR
on:
pull_request:
branches:
- main
types: [opened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # risken review needs this permission to create a comment on the PR
steps:
- uses: actions/checkout@v4
- uses: ca-risken/security-review@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Integrate RISKEN
RISKEN is a platform for collecting security issues; Findings detected by Actions can be linked to the RISKEN environment for issue management, alerting, information sharing to the team, and analysis results from the generated AI.
- uses: ca-risken/security-review@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
risken_console_url: ${{ env.RISKEN_CONSOLE_URL }}
risken_api_endpoint: ${{ env.RISKEN_API_ENDPOINT }}
risken_api_token: ${{ secrets.RISKEN_API_TOKEN }}
Other Options
- uses: ca-risken/security-review@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
options: '--error'
Pameters |
Description |
Examples |
--error |
Exit 1 if there are finding (default: false) |
--error |
Test on local
Generate ENV file
$ cp .env.sample .env
$ vi .env # fix your token
Use Docker
$ make run
https://github.com/ca-risken/security-review/pull/1
Push image
$ make push TAG=v1