Don't run Amplify on PRs from forks #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Amplify Security | |
on: | |
pull_request: {} | |
workflow_dispatch: {} | |
push: | |
branches: ["main", "develop"] | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
amplify-security-scan: | |
name: Amplify Security Scan | |
runs-on: ubuntu-latest | |
if: (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Amplify Runner | |
uses: amplify-security/runner-action@926f003f3c9695a93cbc4e2f1e64eb784dcacbfc # v0.2.0 |