permissions:

From wikieduonline
Jump to navigation Jump to search

permissions for the GITHUB_TOKEN (doc), can be defined up to more than 15 scopes, including:

actions	read/write	none	read
attestations	read/write	none	read
checks	read/write	none	read
contents	read/write	read	read
deployments	read/write	none	read
discussions	read/write	none	read
id-token	none	none	none
issues	read/write	none	read
metadata	read	read	read
models	read	none	none
packages	read/write	read	read
pages	read/write	none	read
pull-requests	read/write	none	read
security-events	read/write	none	read
statuses


Examples[edit]

jobs:
  build-and-deploy-docker-image:
    runs-on: self-hosted
    permissions:
      id-token: write
      contents: read

permissions:
  contents: read
  pull-requests: write
permissions:
  issues: write
permissions:
    contents: read
    packages: write
    attestations: write
    id-token: write

Related[edit]

See also[edit]

Advertising: