Skip to content

chore: add ACT environment variable to security scan workflow #3

chore: add ACT environment variable to security scan workflow

chore: add ACT environment variable to security scan workflow #3

Workflow file for this run

name: "Security Scan"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
ACT: false
jobs:
gosec:
name: Security Scan
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v6
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
# Generates a SARIF file for GitHub Security integration
args: '-fmt sarif -out results.sarif ./...'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v4
if: ${{ !env.ACT }}
with:
sarif_file: results.sarif
token: ${{ secrets.GITHUB_TOKEN }}