Repository navigation
45 lines (40 loc) · 1.58 KB
/
Copy pathsecurity.yml
File metadata and controls
45 lines (40 loc) · 1.58 KB
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
42
43
44
45
name: security
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "17 5 * * 1" # weekly: advisories land without a code change
permissions:
contents: read
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: true
jobs:
pip-audit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- run: pip install --no-cache-dir pip-audit==2.9.0
- run: pip-audit --strict --require-hashes --disable-pip -r requirements.lock -r requirements-build.lock
default-images:
# Every image a template suggests must exist (a template once named an image that never existed).
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- run: pip install --require-hashes --only-binary=":all:" -r requirements.lock -r requirements-build.lock && pip install --no-deps --no-build-isolation -e .
- run: |
for image in $(python -c "from pythonator.policy.runtimes import RUNTIMES; print(' '.join(sorted({r.image for r in RUNTIMES.values() if r.image})))"); do
echo "checking $image"
docker manifest inspect "$image" > /dev/null
done