From 9b67dd43ae0acd76d8c70945e10e76e44c63f17b Mon Sep 17 00:00:00 2001 From: TonyRL Date: Wed, 6 Dec 2023 00:06:41 +0000 Subject: [PATCH] chore: remove duplicated semgrep e.g., https://github.com/DIYgod/RSSHub/actions/runs/7093681885/job/19307555786#step:4:27 --- .github/workflows/semgrep.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 4a4f76766..41950d0e0 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -21,25 +21,13 @@ jobs: runs-on: ubuntu-latest container: image: returntocorp/semgrep - if: (github.actor != 'dependabot[bot]') - steps: - - uses: actions/checkout@v4 - - run: semgrep ci - env: - SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} - - semgrep-github: - name: Scan - runs-on: ubuntu-latest - container: - image: returntocorp/semgrep - if: (github.actor != 'dependabot[bot]') + if: (github.triggering_actor != 'dependabot[bot]') permissions: contents: read security-events: write steps: - uses: actions/checkout@v4 - - run: semgrep ci --sarif --output=semgrep.sarif + - run: semgrep ci --sarif > semgrep.sarif env: SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} - name: Upload SARIF file for GitHub Advanced Security Dashboard