mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
semgrep: Fix invalid RPC rule and add validation GHA workflow. (#25088)
This commit is contained in:
12
.github/workflows/semgrep.yml
vendored
12
.github/workflows/semgrep.yml
vendored
@@ -6,8 +6,19 @@ on:
|
||||
# push:
|
||||
|
||||
jobs:
|
||||
semgrep-validate:
|
||||
name: Semgrep Validate
|
||||
if: (github.actor != 'dependabot[bot]')
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: returntocorp/semgrep:1.107.0
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- run: semgrep --metrics=off --validate --config=.semgrep/
|
||||
|
||||
semgrep:
|
||||
name: Semgrep Scan
|
||||
needs: [semgrep-validate]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: returntocorp/semgrep:1.36.0
|
||||
@@ -18,5 +29,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- run: semgrep ci --config=.semgrep/
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
Reference in New Issue
Block a user