Skip to content

Commit

Permalink
Merge pull request #283 from lae/fix/no-amplify-on-forks
Browse files Browse the repository at this point in the history
Don't run Amplify on PRs from forks
  • Loading branch information
lae authored Dec 3, 2024
2 parents 1bc49ef + b6cfd6f commit 4d8e994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request: {}
workflow_dispatch: {}
push:
branches: ["main"]
branches: ["main", "develop"]

permissions:
contents: read
Expand All @@ -14,9 +14,9 @@ jobs:
amplify-security-scan:
name: Amplify Security Scan
runs-on: ubuntu-latest
if: (github.actor != 'dependabot[bot]')
if: (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Amplify Runner
uses: amplify-security/runner-action@926f003f3c9695a93cbc4e2f1e64eb784dcacbfc # v0.2.0

0 comments on commit 4d8e994

Please sign in to comment.