workflows/automate_changeset_feedback: avoid forks + comment on script download

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-22 14:58:24 +01:00
parent 221c979a23
commit 48cf43b2c4
@@ -10,6 +10,7 @@ permissions:
jobs:
feedback:
if: github.repository == 'backstage/backstage' # prevent running on forks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -19,6 +20,7 @@ jobs:
- name: fetch base
run: git fetch origin ${{ github.base_ref }}
# We avoid using the in-source script since this workflow has elevated permissions that we don't want to expose
- name: Generate Feedback
id: generate-feedback
run: |