pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[improve][ci] Add explicit GitHub Actions permissions

Open lhotari opened this issue 1 year ago • 0 comments

Motivation

This is required when running GitHub Actions in a fork that has been configured with restrictive access.

Explained in "Enforcing a policy for workflow permissions in your enterprise":

Anyone with write access to a repository can modify the permissions granted to the GITHUB_TOKEN, adding or removing access as required, by editing the permissions key in the workflow file. For more information, see permissions.

Modifications

Add explicit "permissions" to each workflow.

Documentation

  • [ ] doc
  • [ ] doc-required
  • [x] doc-not-needed
  • [ ] doc-complete

lhotari avatar Apr 23 '24 13:04 lhotari