Skip to content

.github: enforce least permissions for github action jobs#2220

Open
rudransh-shrivastava wants to merge 1 commit into
VictoriaMetrics:masterfrom
rudransh-shrivastava:rudransh/enforce-least-priv-gh-actions
Open

.github: enforce least permissions for github action jobs#2220
rudransh-shrivastava wants to merge 1 commit into
VictoriaMetrics:masterfrom
rudransh-shrivastava:rudransh/enforce-least-priv-gh-actions

Conversation

@rudransh-shrivastava
Copy link
Copy Markdown
Member

Scope permissions to job level and set permissions: {} at workflow level.

@rudransh-shrivastava rudransh-shrivastava marked this pull request as ready for review May 27, 2026 11:09
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 8 files

Re-trigger cubic

Comment thread .github/workflows/docs.yaml Outdated
name: docs
url: https://docs.victoriametrics.com/operator
permissions:
contents: read
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lets reuse VM_BOT_GH_TOKEN so that we wouldn't have another read-only one?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done!

Comment thread .github/workflows/sandbox.yaml Outdated
update:
name: Update version on sandbox
permissions:
contents: read
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same here - bot token instead of a new one

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done!

Signed-off-by: Rudransh Shrivastava <rudransh@victoriametrics.com>
@rudransh-shrivastava rudransh-shrivastava force-pushed the rudransh/enforce-least-priv-gh-actions branch from 437c302 to 842c0f6 Compare May 27, 2026 11:52
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