forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckov.yaml
48 lines (43 loc) · 1.33 KB
/
checkov.yaml
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
46
47
48
package:
name: checkov
version: 3.0.34
epoch: 0
description: "static code and composition analysis tool for IaC"
copyright:
- license: MIT
dependencies:
runtime:
- python-3.11
environment:
contents:
packages:
- build-base
- ca-certificates-bundle
- glibc
- linux-headers
- posix-libc-utils
- python-3.11
- wolfi-base
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/bridgecrewio/checkov
tag: ${{package.version}}
expected-commit: 5796faf8523acbe4fb5f5fb340c682a27b7851d8
destination: checkov
- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/app/checkov && mkdir -p "${{targets.destdir}}"/usr/bin
mv checkov/* "${{targets.destdir}}"/usr/share/app/checkov
cd "${{targets.destdir}}"/usr/share/app/checkov
python3.11 -m venv .venv
.venv/bin/python3.11 -m pip install --upgrade pip
.venv/bin/pip install .
.venv/bin/pip install --upgrade --force-reinstall setuptools
CHECKOV_PYTHON_PATH="#!/usr/share/app/checkov/.venv/bin/python3.11"
sed -i "1s,.*,$CHECKOV_PYTHON_PATH," checkov/main.py
rm -rf tests *_tests setup.py
ln -s /usr/share/app/checkov/checkov/main.py "${{targets.destdir}}"/usr/bin/checkov
- uses: strip
update:
enabled: false