Skip to content

Commit 33a4aca

Browse files
authored
Merge pull request #196 from lae/fix/no-amplify-on-forks
Don't run Amplify on PRs from forks
2 parents b9eda0d + d217ed6 commit 33a4aca

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)