зеркало из https://github.com/microsoft/openjdk.git
Explicitly specify permissions for workflows
The workflows need 'write' permission for issues since they are modifying the issues (closing them, adding labels, comments...). Previously the workflows relied on the permissive default permissions, see https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
This commit is contained in:
Родитель
47ad1ec2e5
Коммит
404e9344da
|
@ -4,6 +4,9 @@ on:
|
|||
issues:
|
||||
types: [opened]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
format-crash-report:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -3,6 +3,9 @@ on:
|
|||
issue_comment:
|
||||
types: [created, edited]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
check-reported-upstream:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -3,6 +3,9 @@ on:
|
|||
issues:
|
||||
types: [opened]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
check-minecraft-crash:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Загрузка…
Ссылка в новой задаче