fix(tooling): advance exact Python dev pins with just update #174
Workflow file for this run
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: 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 | |
| jobs: | |
| semgrep-sarif: | |
| name: Repository Rule SARIF Analysis | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up just | |
| uses: ./.github/actions/setup-just | |
| - name: Resolve uv version | |
| id: uv_version | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| version="$(just --evaluate uv_version)" | |
| if [[ -z "$version" ]]; then | |
| echo "::error::Could not resolve uv_version from justfile" | |
| exit 1 | |
| fi | |
| echo "version=$version" >> "$GITHUB_OUTPUT" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| version: ${{ steps.uv_version.outputs.version }} | |
| - name: Run repository Semgrep rules | |
| id: semgrep | |
| run: | | |
| set +e | |
| uv run --locked 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@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6 | |
| 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 |