Skip to content

chore(deps): update renovatebot/github-action action to v43.0.11 #283

chore(deps): update renovatebot/github-action action to v43.0.11

chore(deps): update renovatebot/github-action action to v43.0.11 #283

Workflow file for this run

---
name: 🚨 Semgrep Analysis
on:
merge_group:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
push:
branches:
- main
schedule:
- cron: "0 0 * * *" # Run daily at midnight UTC
concurrency:
group: pre-commit-${{ github.run_id }}
cancel-in-progress: true
permissions:
actions: read
checks: write
contents: read
pull-requests: write # Allows merge queue updates
security-events: write # Required for GitHub Security tab
jobs:
semgrep:
name: 🚨 Semgrep Analysis
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')
steps:
- name: Set up git repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Git Safe Directory
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Semgrep Analysis
env:
SEMGREP_RULES: >-
p/python
p/security-audit
p/secrets
p/owasp-top-ten
p/supply-chain
SEMGREP_TIMEOUT: 300 # 5-minute timeout per rule
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
semgrep ci \
--config="${SEMGREP_RULES}" \
--timeout="${SEMGREP_TIMEOUT}" \
--sarif --output=semgrep-results.sarif