Skip to content

Commit

Permalink
fix semgrep ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed Oct 16, 2023
1 parent c4f1da2 commit 942d9d0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/check-semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@
name: Check-Semgrep

on:
# Scan changed files in PRs (diff-aware scanning):
pull_request: {}
# Scan mainline branches and report all findings:
workflow_dispatch:
push:
branches: ["main"]
branches: [ "main" ]
paths-ignore:
- "docs/**"
- "**/*.md"
- "**/*.yaml"
- "CONTRIBUTORS"
- "CHANGELOG/**"
pull_request:
branches: [ "*" ]
paths-ignore:
- "docs/**"
- "**/*.md"
- "**/*.yaml"
- "CONTRIBUTORS"
- "CHANGELOG/**"

jobs:
semgrep:
Expand Down
4 changes: 3 additions & 1 deletion service/pay/deploy/manifests/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ spec:
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
terminationGracePeriodSeconds: 30
---
apiVersion: v1
Expand Down

0 comments on commit 942d9d0

Please sign in to comment.