-
Notifications
You must be signed in to change notification settings - Fork 8
90 lines (79 loc) · 2.29 KB
/
static-analysis.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Static code analysis
on: push
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
python -m pip install --upgrade pip
make install
- run: make flake8
cfn-lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
security_environment: [ASF, EDC, JPL, JPL-public]
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
python -m pip install --upgrade pip
make install
- run: |
make security_environment=${{ matrix.security_environment }} cfn-lint
openapi-spec-validator:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
python -m pip install --upgrade pip
make install
- run: make openapi-validate
statelint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: gem install statelint
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
python -m pip install --upgrade pip
make install
- run: |
make render
sed -i 's/"Resource": "${.*}"/"Resource": "foo:bar"/' apps/step-function.json
statelint apps/step-function.json
snyk:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: snyk/actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: 3.9
- run: |
python -m pip install --upgrade pip
make install
make render security_environment=EDC
- name: Run Snyk to check for vulnerabilities
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
snyk test --package-manager=pip --file=requirements-all.txt --severity-threshold=high
snyk iac test --severity-threshold=high
call-secrets-analysis-workflow:
uses: ASFHyP3/actions/.github/workflows/[email protected]