github / github/codeql

Actions: Add warning/finding when using actions/create-github-app-token without permissions

未关闭
#21,264 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
141

描述

**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.

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
github-actions
领域
ci-cd, security
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。