File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed
Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11---
2+ # This should mostly be the production version of the workflow (i.e. Amplify is
3+ # "installed" in this repo just like any other). It is otherwise not integrated
4+ # with the contents of the repo itself (the CI workflow instead tests changes)
25name: Amplify Security
36on:
47 pull_request: {}
58 workflow_dispatch: {}
69 push:
7- branches: ["main"]
10+ branches: ["main", "develop" ]
811
912permissions:
1013 contents: read
1417 amplify-security-scan:
1518 name: Amplify Security Scan
1619 runs-on: ubuntu-latest
17- if: (github.actor != 'dependabot[bot]')
20+ if: (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
1821 steps:
19- - name: Checkout
20- uses: actions/checkout@v4
22+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2123 - name: Amplify Runner
22- uses: amplify-security/runner-action@v0.2.0
24+ uses: amplify-security/runner-action@main
Original file line number Diff line number Diff line change 2626
2727 - name: Lint Codebase
2828 id: super-linter
29- uses: super-linter/super-linter/slim@b92721f792f381cedc002ecdbb9847a15ece5bb8 # v7.1.0
29+ uses: super-linter/super-linter/slim@85f7611e0f7b53c8573cca84aa0ed4344f6f6a4d # v7.2.1
3030 env:
3131 DEFAULT_BRANCH: main
3232 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1- :action-version: 0.2 .0
1+ :action-version: 0.3 .0
22= Amplify Runner Action
33
44Github Action to run https://amplify.security[Amplify Security]'s CI Runner.
@@ -24,7 +24,11 @@ permissions:
2424
2525jobs:
2626 amplify-security-scan:
27+ # name is currently used to properly identify the workflow in Amplify
28+ name: Amplify Security Scan
2729 runs-on: ubuntu-latest
30+ # external PRs do not have permission to request ID tokens
31+ if: !github.event.pull_request.head.repo.fork
2832 steps:
2933 - name: Run Amplify Security Scan
3034 uses: amplify-security/runner-action@v{action-version}
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ inputs:
1313
1414runs:
1515 using: "docker"
16- image: "docker://amplifysecurity/runner:0.2 "
16+ image: "docker://amplifysecurity/runner:0.3 "
1717 env:
1818 AMPLIFY_ENDPOINT: ${{ inputs.amplify-endpoint }}
You can’t perform that action at this time.
0 commit comments