@@ -59,17 +59,17 @@ jobs:
59
59
working-directory : ./lib
60
60
timeout-minutes : 5
61
61
steps :
62
- - uses : actions/checkout@v4
62
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63
63
with :
64
64
fetch-depth : ${{ !fromJSON(env.do_sonarscan) && 1 || 0 }}
65
- - uses : actions/setup-node@v4
65
+ - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
66
66
with :
67
67
node-version : ' 22'
68
68
cache : ' npm'
69
69
cache-dependency-path : ' ./lib/package-lock.json'
70
70
- run : npm ci
71
71
- run : npm test
72
- - uses : fingerprintjs/action-coverage-report-md@v2
72
+ - uses : fingerprintjs/action-coverage-report-md@72dfb7de7581612640a8e599e918b2eda98f9bba # v2.0.1
73
73
id : coverage-md
74
74
with :
75
75
srcBasePath : ' ./'
@@ -81,13 +81,13 @@ jobs:
81
81
- run : npm run license-check
82
82
- run : npm run lint
83
83
- run : npm pack
84
- - uses : actions/upload-artifact@v4
84
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
85
85
with :
86
86
name : opentdf-sdk-lib
87
87
path : ./lib/opentdf-sdk-*.tgz
88
88
- name : SonarCloud Scan
89
89
if : fromJSON(env.do_sonarscan)
90
- uses : SonarSource/sonarqube-scan-action@v5.0.0
90
+ uses : SonarSource/sonarqube-scan-action@0303d6b62e310685c0e34d0b9cde218036885c4d # v5.0.0
91
91
env :
92
92
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93
93
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
@@ -101,13 +101,13 @@ jobs:
101
101
working-directory : ./cli
102
102
timeout-minutes : 5
103
103
steps :
104
- - uses : actions/checkout@v4
105
- - uses : actions/setup-node@v4
104
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105
+ - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
106
106
with :
107
107
node-version : ' 22'
108
108
cache : ' npm'
109
109
cache-dependency-path : ' ./cli/package-lock.json'
110
- - uses : actions/download-artifact@v4
110
+ - uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
111
111
with :
112
112
name : opentdf-sdk-lib
113
113
path : lib/
@@ -120,7 +120,7 @@ jobs:
120
120
- name : Setup Bats and bats libs
121
121
uses : bats-core/bats-action@3.0.0
122
122
- run : bats bin/opentdf.bats
123
- - uses : actions/upload-artifact@v4
123
+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
124
124
with :
125
125
name : opentdf-ctl
126
126
path : ./cli/opentdf-ctl-*.tgz
@@ -134,13 +134,13 @@ jobs:
134
134
working-directory : ./web-app
135
135
timeout-minutes : 5
136
136
steps :
137
- - uses : actions/checkout@v4
138
- - uses : actions/setup-node@v4
137
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138
+ - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
139
139
with :
140
140
node-version : ' 22'
141
141
cache : ' npm'
142
142
cache-dependency-path : ' ./web-app/package-lock.json'
143
- - uses : actions/download-artifact@v4
143
+ - uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
144
144
with :
145
145
name : opentdf-sdk-lib
146
146
path : lib/
@@ -160,7 +160,7 @@ jobs:
160
160
working-directory : .github/workflows
161
161
timeout-minutes : 5
162
162
steps :
163
- - uses : actions/checkout@v4
163
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
164
164
- name : 🦇🦇🦇🦇🦇🦇
165
165
run : docker run --rm -v "$PWD:/mnt" --workdir "/mnt" bats/bats:1.11.0 *.bats
166
166
- name : 🦪 ✔ 🧼🧼🧼
@@ -179,28 +179,42 @@ jobs:
179
179
working-directory : .github/workflows/roundtrip
180
180
timeout-minutes : 45
181
181
steps :
182
- - uses : actions/checkout@v4
183
- - uses : actions/setup-node@v4
182
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
183
+ - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
184
184
with :
185
185
node-version : ' 22'
186
186
cache : ' npm'
187
187
cache-dependency-path : ' ./web-app/package-lock.json'
188
- - uses : actions/download-artifact@v4
188
+ - uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
189
189
with :
190
190
name : opentdf-sdk-lib
191
191
path : lib/
192
- - uses : actions/download-artifact@v4
192
+ - uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
193
193
with :
194
194
name : opentdf-ctl
195
195
path : cli/
196
- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
197
- with :
198
- go-version : ' 1.22'
199
196
- name : Git clone backend
200
- run : |
201
- git clone --depth 1 https://github.com/opentdf/platform.git
197
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
198
+ with :
199
+ path : .github/workflows/roundtrip/platform
200
+ repository : opentdf/platform
201
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
202
+ with :
203
+ go-version-file : .github/workflows/roundtrip/platform/service/go.mod
204
+ check-latest : false
205
+ cache-dependency-path : |
206
+ .github/workflows/roundtrip/platform/lib/fixtures/go.sum
207
+ .github/workflows/roundtrip/platform/lib/ocrypto/go.sum
208
+ .github/workflows/roundtrip/platform/protocol/go/go.sum
209
+ .github/workflows/roundtrip/platform/sdk/go.sum
210
+ .github/workflows/roundtrip/platform/service/go.sum
211
+ - run : find ./ -name go.mod
212
+ - name : go configure backend
213
+ run : |-
202
214
go work init
203
- for x in platform/{protocol/go,lib/{fixtures,ocrypto},sdk,service}; do go work use "$x"; done
215
+ for x in platform/{protocol/go,lib/{fixtures,ocrypto},sdk,service}; do
216
+ go work use "$x"
217
+ done
204
218
- run : docker compose up -d --wait --wait-timeout 240
205
219
- env :
206
220
PLAYWRIGHT_TESTS_TO_RUN : roundtrip
@@ -235,8 +249,8 @@ jobs:
235
249
DIST_TAG : ${{ steps.guess-build-metadata.outputs.DIST_TAG }}
236
250
TARGET_VERSION : ${{ steps.check-version.outputs.TARGET_VERSION }}
237
251
steps :
238
- - uses : actions/checkout@v4
239
- - uses : actions/setup-node@v4
252
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
253
+ - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
240
254
with :
241
255
node-version : ' 22'
242
256
registry-url : https://npm.pkg.github.com
@@ -270,7 +284,7 @@ jobs:
270
284
- run : echo "- [Client Library](https://github.com/opentdf/web-sdk/pkgs/npm/client)">>$GITHUB_STEP_SUMMARY
271
285
- run : echo "- [Command Line Tool](https://github.com/opentdf/web-sdk/pkgs/npm/cli)">>$GITHUB_STEP_SUMMARY
272
286
- name : Publish documentation to gh-pages
273
- uses : JamesIves/github-pages-deploy-action@v4.7.3
287
+ uses : JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
274
288
with :
275
289
branch : gh-pages
276
290
folder : lib/dist/docs
@@ -285,8 +299,8 @@ jobs:
285
299
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/')) ||
286
300
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/sdk/v'))
287
301
steps :
288
- - uses : actions/checkout@v4
289
- - uses : actions/setup-node@v4
302
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
303
+ - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
290
304
with :
291
305
node-version : ' 22'
292
306
registry-url : ' https://registry.npmjs.org'
0 commit comments