Skip to content

Commit

Permalink
update security-gate.yml
Browse files Browse the repository at this point in the history
- remove push trigger
- add pull request trigger on develop branch
- rename verification step
  • Loading branch information
scriptprivate authored Dec 16, 2024
1 parent 285a665 commit 6cafa5f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/security-gate.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Security Gate - LESIS

on:
push:
branches:
- main
pull_request:
branches:
- main
- develop

permissions:
security-events: read
contents: read

jobs:
build:
Expand All @@ -24,15 +26,15 @@ jobs:
- name: Pull Docker image from GitHub Container Registry
run: docker pull ghcr.io/instriq/security-gate/security-gate:latest

- name: Verify security alerts from dependabot
- name: Verify security alerts from GHAS
run: |
docker run ghcr.io/instriq/security-gate/security-gate:latest \
-t $GITHUB_TOKEN \
-r ${{ github.repository }} \
--critical $MAX_CRITICAL \
--high $MAX_HIGH \
--medium $MAX_MEDIUM \
--low $MAX_LOW \
-t "$GITHUB_TOKEN" \
-r "${{ github.repository }}" \
-c "$MAX_CRITICAL" \
-h "$MAX_HIGH" \
-m "$MAX_MEDIUM" \
-l "$MAX_LOW" \
--dependency-alerts \
--code-alerts \
--secret-alerts
--secret-alerts \
--code-alerts

0 comments on commit 6cafa5f

Please sign in to comment.