pkaramol
pkaramol

Reputation: 19332

Εlevate GITHUB_TOKEN's permissions in Github Actions

Each workflow run has access to a scoped GITHUB_TOKEN that has specific permissions.

According to the documentation, the default permissions for pull_requests is read/write.

If there is a branch protection rule (PR review required before merging), can the GITHUB_TOKEN permissions be elevated to the point it overrides such a rule?

Upvotes: 0

Views: 419

Answers (1)

Grzegorz Krukowski
Grzegorz Krukowski

Reputation: 19802

No - in case you need different permissions, you should use PAT instead (Personal Access Token).

Upvotes: 1

Related Questions