Actions: Add warning/finding when using actions/create-github-app-token without permissions
Offen
question
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 141
Beschreibung
**Description of the issue**
You can use https://github.com/actions/create-github-app-token to create an app installation token. Depending on the app, it can have broad permissions. Unfortunately, the action does not use `permissions-none` as default, but all the permissions of the app.
So CodeQL could warn when using this app without setting permissions.
Beitragsleitfaden
Rechercherichtung
Start by reviewing the actions/create-github-app-token action and how CodeQL analyzes GitHub Actions workflows. Define the warning's trigger and expected handling for workflows that omit permissions, then add coverage showing the finding for the relevant configuration.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github-actions
- Bereich
- ci-cd, security
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100