GitHub Actions Integration
The InsightCloudSec Scan GitHub Action allows security and development teams to integrate infrastructure-as-code (IaC) security and compliance scans with their GitHub CI/CD pipelines. The Action is available at the GitHub Marketplace.
If you also use the GitHub Advanced Security (GHAS) module with the external Code Scanning feature, our bi-directional integration will publish the details of any ICS IaC scan findings back to GitHub in a SARIF format for consumption, which consolidates security alerts for developers in a central repository.
The following is an example of what our GitHub Action integration might look like:
yaml
1on:2pull_request:3branches:4- master5- main67jobs:8ics-scan-and-upload:9name: insightCloudSec repository scan with Github Advanced Security10runs-on: ubuntu-latest11steps:12- uses: actions/checkout@v313- name: Scan the repository14uses: rapid7/insightcloudsec-actions@v215with:16api_key: ${{ secrets.ics_api_key }}17base_url: ${{ secrets.ics_base_url }}18config_name: AWS CIS Benchmark 1.419# the following is optional but recommended to surface results to Github Advanced Security20- name: Upload the sarif report to Github Advanced Security21if: always()22uses: github/codeql-action/upload-sarif@v223with:24sarif_file: ics_scan.sarif25
Did this page help you?