-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (102 loc) · 3.55 KB
/
Copy pathecosystem-baseline.yml
File metadata and controls
111 lines (102 loc) · 3.55 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Ecosystem Baseline (reusable)
on:
workflow_call:
inputs:
actions-security-blocking:
type: boolean
required: false
default: false
dependency-blocking:
type: boolean
required: false
default: false
secrets-blocking:
description: Fail when Gitleaks reports findings in the selected scan scope.
type: boolean
required: false
default: false
iac-blocking:
type: boolean
required: false
default: false
static-analysis-blocking:
type: boolean
required: false
default: false
require-complete:
description: Fail when any required evaluation is missing, skipped, incomplete, or errored.
type: boolean
required: false
default: true
skip-dirs:
type: string
required: false
default: node_modules,vendor,target,dist
jobs:
actions-security:
permissions:
contents: read
uses: filecoin-project/ff-sec-actions/.github/workflows/sec-actions.yml@952f6ad35aafc052b4bc938cef90e45ca17ced7d
with:
blocking: ${{ inputs.actions-security-blocking }}
dependencies:
permissions:
actions: read
contents: read
uses: filecoin-project/ff-sec-actions/.github/workflows/sec-dependencies.yml@952f6ad35aafc052b4bc938cef90e45ca17ced7d
with:
blocking: ${{ inputs.dependency-blocking }}
skip-dirs: ${{ inputs.skip-dirs }}
secrets:
permissions:
contents: read
uses: filecoin-project/ff-sec-actions/.github/workflows/sec-secrets.yml@952f6ad35aafc052b4bc938cef90e45ca17ced7d
with:
blocking: ${{ inputs.secrets-blocking }}
infrastructure:
permissions:
actions: read
contents: read
uses: filecoin-project/ff-sec-actions/.github/workflows/sec-iac.yml@952f6ad35aafc052b4bc938cef90e45ca17ced7d
with:
blocking: ${{ inputs.iac-blocking }}
skip-dirs: ${{ inputs.skip-dirs }}
static-analysis:
permissions:
actions: read
contents: read
uses: filecoin-project/ff-sec-actions/.github/workflows/sec-semgrep.yml@952f6ad35aafc052b4bc938cef90e45ca17ced7d
with:
blocking: ${{ inputs.static-analysis-blocking }}
profile-conclusion:
name: Profile Conclusion
if: always()
needs: [actions-security, dependencies, secrets, infrastructure, static-analysis]
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- name: Download normalized Evaluation Results
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: evaluation-result-*
path: evaluation-results
merge-multiple: true
- name: Aggregate Ecosystem Baseline evidence and enforce conclusion
if: always()
uses: filecoin-project/ff-sec-actions/actions/aggregate-results@167b840db25a7c50288f5dec39090c28935491b4
with:
results-directory: evaluation-results
profile-id: ecosystem-baseline
profile-version: 1.0.0
required-evaluations: '["zizmor-actions","trivy-dependencies","gitleaks","trivy-iac","semgrep-baseline"]'
require-complete: ${{ inputs.require-complete }}
- name: Upload Ecosystem Baseline Evidence Bundle
if: always() && hashFiles('evidence-bundle.json') != ''
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: ecosystem-baseline-evidence
path: |
evidence-bundle.json
evidence-summary.md