chore: remove duplicated semgrep

e.g., https://github.com/DIYgod/RSSHub/actions/runs/7093681885/job/19307555786#step:4:27
This commit is contained in:
TonyRL
2023-12-06 00:06:41 +00:00
parent 7da162041f
commit 9b67dd43ae
+2 -14
View File
@@ -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