adoptium / containers

Repo containing the dockerfiles and scripts to produce the official eclipse-temurin containers.
https://hub.docker.com/_/eclipse-temurin/
Apache License 2.0
206 stars 87 forks source link

ci: support orgs with default: read permissions #486

Closed jsoref closed 5 months ago

jsoref commented 5 months ago

Without this change, forks that default to readonly permissions fail (By default, when you create a new organization, GITHUB_TOKEN only has read access for the contents and packages scopes.) with:

Invalid workflow file: .github/workflows/dependabot-auto-merge.yml#L5 The workflow is not valid. .github/workflows/dependabot-auto-merge.yml (Line: 5, Col: 3): Error calling workflow 'adoptium/.github/.github/workflows/dependabot-auto-merge.yml@main'. The workflow is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'.

With this change, the workflow is deemed valid (and could thus do whatever it does).