Skip to content

chore(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0 #89

chore(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0

chore(deps): bump astral-sh/setup-uv from 8.1.0 to 8.2.0 #89

Workflow file for this run

name: Repository Rule SARIF
concurrency:
group: >
semgrep-sarif-${{
github.event_name == 'pull_request' &&
github.event.pull_request.number ||
github.ref
}}
cancel-in-progress: true
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "42 0 * * 1"
workflow_dispatch:
permissions:
contents: read
security-events: write
actions: read
env:
UV_VERSION: "0.11.19"
jobs:
semgrep-sarif:
name: Repository Rule SARIF Analysis
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
version: ${{ env.UV_VERSION }}
- name: Run repository Semgrep rules
id: semgrep
run: |
set +e
uv run semgrep \
--metrics off \
--error \
--strict \
--timeout 30 \
--config semgrep.yaml \
--sarif \
--output semgrep-results.sarif \
.
status=$?
echo "exit_code=$status" >> "$GITHUB_OUTPUT"
exit 0
- name: Upload SARIF results
if: >-
always() &&
hashFiles('semgrep-results.sarif') != '' &&
(
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
)
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
sarif_file: semgrep-results.sarif
category: semgrep-repository-rules
wait-for-processing: true
- name: Fail on repository rule findings
if: steps.semgrep.outputs.exit_code != '0'
run: exit 1