From 5f75b7b9791da96a82c601e6935eebb4ab3f455e Mon Sep 17 00:00:00 2001 From: James Berthoty Date: Fri, 17 Jan 2025 22:08:55 +0000 Subject: [PATCH] update amplify --- .github/workflows/amplify.yml | 36 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/amplify.yml b/.github/workflows/amplify.yml index 952526b..69a6744 100644 --- a/.github/workflows/amplify.yml +++ b/.github/workflows/amplify.yml @@ -1,28 +1,22 @@ -# .github/workflows/amplify.yml -name: Amplify Security # do not modify this line +--- +name: Amplify Security on: - pull_request: {} # run for all PRs - workflow_dispatch: {} # allow manual runs through GitHub UI + pull_request: {} + workflow_dispatch: {} push: - branches: ["master", "main"] # add additional iteration or release branch patterns here + branches: ["master", "main"] + permissions: - contents: read # declare default permissions for GITHUB_TOKEN + contents: read + id-token: write + jobs: amplify-security-scan: + name: Amplify Security Scan runs-on: ubuntu-latest - container: - image: returntocorp/semgrep - if: (github.actor != 'dependabot[bot]') + if: (!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]') steps: - - uses: actions/checkout@v3 - - run: semgrep ci --config auto --json > amplify-sast.json || true - env: - SEMGREP_RULES: >- - p/security-audit - p/secrets - # do not modify this step - - uses: actions/upload-artifact@v3 - with: - name: amplify-scan - path: amplify-sast.json - retention-days: 7 + - name: Checkout + uses: actions/checkout@v4 + - name: Amplify Runner + uses: amplify-security/runner-action@main