Actions: Add warning/finding when using actions/create-github-app-token without permissions
- Lingua principale
- CodeQL
- Stelle
- 10.1k
- Fork
- 2.1k
- Merge medio
- 2g 15h
- PR unite (30g)
- 141
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions
- Ambito
- ci-cd, security
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100