-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
41 lines (34 loc) · 1007 Bytes
/
security.yml
File metadata and controls
41 lines (34 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
name: Security
'on':
push:
branches: [main, master]
pull_request:
permissions:
contents: read
jobs:
semgrep:
name: Semgrep SAST
runs-on: ubuntu-22.04
container:
image: semgrep/semgrep@sha256:d3d1be3a3770514d16a6a57b9761575d7536d70f45a5220274f4ec7d55c442b9 # v1.151.0
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v5.0.1
with:
persist-credentials: false
- name: Run semgrep
run: >
semgrep --config auto
--exclude-rule dockerfile.security.last-user-is-root.last-user-is-root
--error --quiet .
pip-audit:
name: Python dependency audit
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v5.0.1
with:
persist-credentials: false
- name: Setup Algo environment
uses: ./.github/actions/setup-algo
- name: Run pip-audit
run: uv run --with pip-audit pip-audit