Skip to content

Commit eb4687d

Browse files
authored
Merge pull request #73 from latiotech/amplify-runn
Trigger Build
2 parents 67ea25d + 5f75b7b commit eb4687d

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

.github/workflows/amplify.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
# .github/workflows/amplify.yml
2-
name: Amplify Security # do not modify this line
1+
---
2+
name: Amplify Security
33
on:
4-
pull_request: {} # run for all PRs
5-
workflow_dispatch: {} # allow manual runs through GitHub UI
4+
pull_request: {}
5+
workflow_dispatch: {}
66
push:
7-
branches: ["master", "main"] # add additional iteration or release branch patterns here
7+
branches: ["master", "main"]
8+
89
permissions:
9-
contents: read # declare default permissions for GITHUB_TOKEN
10+
contents: read
11+
id-token: write
12+
1013
jobs:
1114
amplify-security-scan:
15+
name: Amplify Security Scan
1216
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]')
1618
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

0 commit comments

Comments
 (0)