Skip to content

Add local agent selection to dispatch #95

Add local agent selection to dispatch

Add local agent selection to dispatch #95

Workflow file for this run

name: CodeQL (GitHub Actions)
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/**'
- '.github/actions/**'
permissions: {}
jobs:
analyze:
name: Analyze workflows
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Initialize CodeQL
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
languages: actions
queries: security-extended,security-and-quality
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
category: /language:actions
# Fork PRs receive a read-only GITHUB_TOKEN, so SARIF upload to the
# code-scanning API would fail. Analyze still runs and surfaces
# findings in the job log; same-repo PRs upload as normal.
upload: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'always' || 'never' }}