SAST & IaC Scan Workflow #92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SAST & IaC Scan Workflow | |
on: | |
# Scan for each push event on your protected branch. | |
push: | |
branches: ["main"] | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
orca-scan: | |
name: Orca Scan | |
runs-on: ubuntu-latest | |
env: | |
PROJECT_KEY: observeinc-terraform-azure-collection | |
steps: | |
# Checkout your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
# Important for pull request diff-awareness report | |
fetch-depth: 0 | |
- name: Run Orca SAST Scan | |
uses: orcasecurity/shiftleft-sast-action@v1 | |
with: | |
api_token: ${{ secrets.ORCA_SECURITY_API_TOKEN }} | |
project_key: ${{ env.PROJECT_KEY }} | |
path: | |
# scanning the entire repository | |
"." | |
- name: Run Orca IaC Scan | |
uses: orcasecurity/shiftleft-iac-action@v1 | |
with: | |
api_token: ${{ secrets.ORCA_SECURITY_API_TOKEN }} | |
project_key: ${{ env.PROJECT_KEY }} | |
path: | |
# scanning the entire repository | |
"." |