Skip to content

fix: restrict permissions for APM packages update workflow - #480

Merged
nookyo merged 1 commit into
mainfrom
479-bug-harden-the-apm-package-update-workflow-template
Sep 4, 2026
Merged

fix: restrict permissions for APM packages update workflow#480
nookyo merged 1 commit into
mainfrom
479-bug-harden-the-apm-package-update-workflow-template

Conversation

@nookyo

@nookyo nookyo commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • reduce the APM update job's automatic GITHUB_TOKEN permission to contents: read
  • use the automatic read-only token for checkout instead of exposing APM_UPDATE_TOKEN
  • retain APM_UPDATE_TOKEN only for the wrapper action, which creates or updates the branch and pull request

Validation

  • git diff --check
  • reviewed the wrapper token flow: peter-evans/create-pull-request and auto-merge receive the explicit action token

Closes #479

@nookyo
nookyo requested a review from borislavr as a code owner September 4, 2026 10:07
@nookyo nookyo linked an issue Sep 4, 2026 that may be closed by this pull request
@nookyo nookyo added the bug Something isn't working label Sep 4, 2026
@nookyo
nookyo merged commit 02eb2e2 into main Sep 4, 2026
9 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Harden the APM package update workflow template

2 participants