@@ -11,13 +11,18 @@ concurrency:
11
11
group : ${{ github.workflow }}-${{ github.ref }}
12
12
cancel-in-progress : true
13
13
14
+ # Default permissions for all jobs
15
+ permissions : {}
16
+
14
17
jobs :
15
18
build :
16
19
name : build
17
20
runs-on : ubuntu-24.04
18
21
container : ghcr.io/datadog/images-rb/engines/ruby:3.3
19
22
steps :
20
23
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
+ with :
25
+ persist-credentials : false
21
26
- run : bundle lock
22
27
- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
23
28
id : lockfile
33
38
container : ghcr.io/datadog/images-rb/engines/ruby:3.3
34
39
steps :
35
40
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41
+ with :
42
+ persist-credentials : false
36
43
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
37
44
- run : bundle install
38
45
- run : bundle exec rake rubocop
44
51
container : ghcr.io/datadog/images-rb/engines/ruby:3.3
45
52
steps :
46
53
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
54
+ with :
55
+ persist-credentials : false
47
56
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
48
57
- name : Install dependencies
49
58
run : bundle install
56
65
container : ghcr.io/datadog/images-rb/engines/ruby:3.3
57
66
steps :
58
67
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
68
+ with :
69
+ persist-credentials : false
59
70
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
60
71
- name : Install dependencies
61
72
run : bundle install
77
88
steps :
78
89
- name : Checkout
79
90
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
91
+ with :
92
+ persist-credentials : false
80
93
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 # requires the lockfile
81
94
- uses : DataDog/datadog-sca-github-action@main
82
95
with :
90
103
runs-on : ubuntu-24.04
91
104
steps :
92
105
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
106
+ with :
107
+ persist-credentials : false
93
108
- uses : DataDog/datadog-static-analyzer-github-action@v1
94
109
with :
95
110
dd_api_key : ${{ secrets.DD_API_KEY }}
@@ -103,6 +118,8 @@ jobs:
103
118
container : semgrep/semgrep # PENDING: Possible to be rate limited.
104
119
steps :
105
120
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
121
+ with :
122
+ persist-credentials : false
106
123
- run : |
107
124
semgrep ci \
108
125
--include=bin/* \
@@ -112,6 +129,24 @@ jobs:
112
129
env:
113
130
SEMGREP_RULES: p/default
114
131
132
+ # https://woodruffw.github.io/zizmor/
133
+ zizmor :
134
+ name : zizmor
135
+ runs-on : ubuntu-24.04
136
+ permissions :
137
+ security-events : write
138
+ steps :
139
+ - name : Checkout repository
140
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
141
+ with :
142
+ persist-credentials : false
143
+ - name : Run zizmor 🌈
144
+ uses : docker://ghcr.io/woodruffw/zizmor:1.4.1
145
+ with :
146
+ args : --min-severity low .
147
+ env :
148
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149
+
115
150
complete :
116
151
name : Static Analysis (complete)
117
152
needs :
@@ -121,6 +156,7 @@ jobs:
121
156
- ' semgrep'
122
157
- ' dd-software-composition-analysis'
123
158
- ' dd-static-analysis'
159
+ - ' zizmor'
124
160
runs-on : ubuntu-24.04
125
161
steps :
126
162
- run : echo "Done"
0 commit comments