github / github/codeql

False positive in CWE-829 /UntrustedCheckoutMedium.ql

Offen
#21,823 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
false-positive
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

**Description of the false positive**
When there is a workflow that is triggered by a pull_request, this check considers the called workflow to be privileged even though it is not.

**Code samples or links to source code**

Triggered Workflow: https://raw.githubusercontent.com/llvm/llvm-project/refs/heads/main/.github/workflows/release-binaries-all.yml
Called Workflow: https://raw.githubusercontent.com/llvm/llvm-project/refs/heads/main/.github/workflows/release-binaries.yml

**URL to the alert on GitHub code scanning (optional)**

https://github.com/llvm/llvm-project/security/code-scanning/1828

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the CWE-829 /UntrustedCheckoutMedium.ql query and review the triggered and called workflow examples linked in the report. Compare the query result with the pull_request-triggered workflow behavior and the linked code-scanning alert. Done means the called workflow is no longer incorrectly reported as privileged.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github, github-actions
Bereich
ci-cd, security
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.