Bar permissions and allow forks to run in base scope (#6)

* Test permissions

* Add back pull_request

* Use full SHA
This commit is contained in:
ddelange
2022-08-11 09:34:52 +02:00
committed by GitHub
parent 9023f38343
commit 23608f3fa7

View File

@@ -1,6 +1,10 @@
name: PR Diff for Helm chart
on:
pull_request:
pull_request_target:
permissions:
pull-requests: write
jobs:
diff:
@@ -34,7 +38,7 @@ jobs:
echo 'HELM_DIFF<<EOF' >> $GITHUB_ENV
echo "$(diff -ur before after)" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- uses: marocchino/sticky-pull-request-comment@v2
- uses: marocchino/sticky-pull-request-comment@39c5b5dc7717447d0cba270cd115037d32d28443
with:
message: |
Running a `helm template` smoketest on this branch results in the following diff against `${{ github.base_ref }}`: