Skip to content

Commit

Permalink
Added missing permissions to failed PR validation step (#577)
Browse files Browse the repository at this point in the history
* Added missing permissions to failed PR validation step

The 'https://github.com/stefanzweifel/git-auto-commit-action' project requires specific permissions, since they are missing the workflow fails with access denied.

https://logzio.atlassian.net/browse/CORE-351

* Fix permissions key indent level & added default permissions

* Unexpected value 'metadata'
  • Loading branch information
ralongit authored Jul 21, 2024
1 parent 9a14176 commit bf36f8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr_validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
runs-on: ubuntu-latest
env:
MANIFEST_PATH: '_manifest/validation_manifest.json'
permissions:
contents: 'write'
packages: 'read'
steps:
- name: Checkout PR
uses: actions/checkout@v4
Expand Down Expand Up @@ -103,7 +106,7 @@ jobs:
file_pattern: './static/manifest.json'
commit_message: 'auto generated manifest'
commit_options: "--no-gpg-sign"
push_options: '--force'
push_options: '--force'
- name: Manifest update success
if: steps.create_manifest.outputs.skip_next_step != 'true' && steps.run_validation.outputs.skip_next_step != 'true'
run: |
Expand Down

0 comments on commit bf36f8e

Please sign in to comment.