-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (54 loc) · 1.51 KB
/
static-analysis.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
49
50
51
52
53
54
55
56
57
58
59
60
name: Static analysis
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
inputs:
working-directory:
description: Working directory
type: string
required: false
default: .
terraform-version:
description: Terraform version
type: string
required: false
default: latest
severity:
description: Severity
type: string
required: false
default: MEDIUM,HIGH,CRITICAL
permissions:
contents: read
env:
working-directory: ${{ inputs.working-directory || '.' }}
terraform-version: ${{ inputs.terraform-version || 'latest' }}
severity: ${{ inputs.severity || 'MEDIUM,HIGH,CRITICAL' }}
jobs:
preparation:
name: Preparation
runs-on: ubuntu-latest
steps:
- run: |
echo "null"
outputs:
working-directory: ${{ env.working-directory }}
terraform-version: ${{ env.terraform-version }}
severity: ${{ env.severity }}
static-analysis:
needs:
- preparation
name: Static analysis
uses: ./.github/workflows/static-analyzers-aggregator.yaml
with:
working-directory: ${{ needs.preparation.outputs.working-directory }}
terraform-version: ${{ needs.preparation.outputs.terraform-version }}
severity: ${{ needs.preparation.outputs.severity }}
static-analysis-geodesic-test:
needs:
- preparation
name: Static analysis geodesic test
uses: ./.github/workflows/static-analyzers-aggregator-geodesic-test.yaml