File tree Expand file tree Collapse file tree 1 file changed +15
-21
lines changed Expand file tree Collapse file tree 1 file changed +15
-21
lines changed Original file line number Diff line number Diff line change 1
- # .github/workflows/amplify.yml
2
- name : Amplify Security # do not modify this line
1
+ ---
2
+ name : Amplify Security
3
3
on :
4
- pull_request : {} # run for all PRs
5
- workflow_dispatch : {} # allow manual runs through GitHub UI
4
+ pull_request : {}
5
+ workflow_dispatch : {}
6
6
push :
7
- branches : ["master", "main"] # add additional iteration or release branch patterns here
7
+ branches : ["master", "main"]
8
+
8
9
permissions :
9
- contents : read # declare default permissions for GITHUB_TOKEN
10
+ contents : read
11
+ id-token : write
12
+
10
13
jobs :
11
14
amplify-security-scan :
15
+ name : Amplify Security Scan
12
16
runs-on : ubuntu-latest
13
- container :
14
- image : returntocorp/semgrep
15
- if : (github.actor != 'dependabot[bot]')
17
+ if : (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]')
16
18
steps :
17
- - uses : actions/checkout@v3
18
- - run : semgrep ci --config auto --json > amplify-sast.json || true
19
- env :
20
- SEMGREP_RULES : >-
21
- p/security-audit
22
- p/secrets
23
- # do not modify this step
24
- - uses : actions/upload-artifact@v3
25
- with :
26
- name : amplify-scan
27
- path : amplify-sast.json
28
- retention-days : 7
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+ - name : Amplify Runner
22
+ uses : amplify-security/runner-action@main
You can’t perform that action at this time.
0 commit comments