Skip to content

[release/10.0.1xx] [github] Use/require fewer permissions in the 'Bump global.json' workflow. - #25489

Merged
rolfbjarne merged 1 commit into
release/10.0.1xxfrom
dev/rolf/backport-pr-25469-release/10.0.1xx-2026-05-21
May 21, 2026
Merged

rolfbjarne merged 1 commit into
release/10.0.1xxfrom
dev/rolf/backport-pr-25469-release/10.0.1xx-2026-05-21

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Backport of #25469, so that the workflow works in this branch.

…flow.

'zizmor' reports no issues for this workflow now.
Copilot AI review requested due to automatic review settings May 21, 2026 06:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR backports workflow hardening from #25469 to the release/10.0.1xx branch, reducing permissions exposure while keeping the global.json auto-bump behavior for dotnet-maestro PRs.

Changes:

  • Switch workflow trigger from pull_request_target to pull_request and explicitly set default permissions: {}.
  • Restrict execution to non-fork PRs authored by dotnet-maestro[bot], and pin actions/checkout by SHA while checking out the PR branch for pushing.

steps:
- name: 'Checkout repo'
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@rolfbjarne
rolfbjarne enabled auto-merge (squash) May 21, 2026 07:04
@rolfbjarne
rolfbjarne merged commit 2bc9635 into release/10.0.1xx May 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants