Skip to content

Commit d217ed6

Browse files
committed
[actions] don't run Amplify on PRs from forks
GitHub does not mint OIDC tokens for externally sourced PRs so this workflow can't successfully run. An alternative solution (like via an approval comment?) should be identified and implemented eventually to allow the workflow for previous contributors using their own forks. This also updates the workflow to run on the develop branch.
1 parent b9eda0d commit d217ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/amplify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request: {}
55
workflow_dispatch: {}
66
push:
7-
branches: ["main"]
7+
branches: ["main", "develop"]
88

99
permissions:
1010
contents: read
@@ -14,7 +14,7 @@ jobs:
1414
amplify-security-scan:
1515
name: Amplify Security Scan
1616
runs-on: ubuntu-latest
17-
if: (github.actor != 'dependabot[bot]')
17+
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4

0 commit comments

Comments
 (0)