Skip to content

ci: declare permissions on ci, generate-dashboards, grafana_dashboard#983

Merged
ArthurSens merged 1 commit into
prometheus:masterfrom
arpitjain099:ci/add-permissions
May 26, 2026
Merged

ci: declare permissions on ci, generate-dashboards, grafana_dashboard#983
ArthurSens merged 1 commit into
prometheus:masterfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown
Contributor

Pins the default GITHUB_TOKEN on the three workflows still inheriting org defaults:

  • ci.ymlcontents: read for yamllint.
  • generate-dashboards.yamlcontents: read for the dashboard-generation diff check.
  • grafana_dashboard.yamlcontents: read + pull-requests: write. The success/failure comment uses curl -X POST .../issues/$PR_NUMBER/comments with GITHUB_TOKEN.

- ci.yml + generate-dashboards.yaml: contents: read (yaml lint, dashboard generation diff check).
- grafana_dashboard.yaml: contents: read + pull-requests: write. The
  workflow posts a success/failure comment via the GitHub Issues
  comments API using GITHUB_TOKEN.

Signed-off-by: arpitjain099 <arpitjain099@gmail.com>
@arpitjain099
Copy link
Copy Markdown
Contributor Author

Hi @SuperQ, gentle ping on this. The PR has been open for 4 days without a review. I noticed you've been on the recent-merger side of recent merges in this repo, so I thought I'd reach out. When you have a moment, would you mind giving this a quick look? No urgency, just trying to keep it on the radar. Happy to address any feedback.

@arpitjain099
Copy link
Copy Markdown
Contributor Author

Hey, Quick follow-up. Let me know if you'd prefer a different framing or smaller scope. Appreciated.

Copy link
Copy Markdown
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think a good idea would be to add zizmor as a github actions security linter :)

@ArthurSens ArthurSens merged commit 72c9d23 into prometheus:master May 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants