Skip to content

Commit 49193d9

Browse files
authored
Merge pull request #14 from amplify-security/develop
ENG-1074 Sync main
2 parents 926f003 + 8697d69 commit 49193d9

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/amplify.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
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)
25
name: Amplify Security
36
on:
47
pull_request: {}
58
workflow_dispatch: {}
69
push:
7-
branches: ["main"]
10+
branches: ["main", "develop"]
811

912
permissions:
1013
contents: read
@@ -14,9 +17,8 @@ jobs:
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

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
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 }}

README.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:action-version: 0.2.0
1+
:action-version: 0.3.0
22
= Amplify Runner Action
33

44
Github Action to run https://amplify.security[Amplify Security]'s CI Runner.
@@ -24,7 +24,11 @@ permissions:
2424

2525
jobs:
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}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ inputs:
1313

1414
runs:
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 }}

0 commit comments

Comments
 (0)