Skip to content

Commit 6eb4d62

Browse files
authored
try to fix GitHub Actions permissions (#20431)
# Objective - since #20416 GitHub Actions complains that: ``` Invalid workflow file The workflow is not valid. .github/workflows/example-run-report.yml (Line: 71, Col: 3): Error calling workflow 'bevyengine/bevy/.github/workflows/send-screenshots-to-pixeleagle.yml@caafa03'. The workflow is requesting 'contents: read', but is only allowed 'contents: none'. ``` ## Solution - I couldn't find it in the documentation, but I suppose that permissions are inherited through workflow calls so I'm adding the permission to the parent workflow 🤞
1 parent 8e52194 commit 6eb4d62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/example-run-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: Example Run - PR Comments
66
# Also requesting write permissions on PR to be able to comment
77
permissions:
88
pull-requests: "write"
9+
contents: "read"
910

1011
on:
1112
workflow_run:

0 commit comments

Comments
 (0)