Skip to content

Commit a050478

Browse files
committed
Update workflows
1 parent b0271f8 commit a050478

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

.github/workflows/build-cli.yml

+21-18
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
node_version: ${{ steps.retrieve-node-version.outputs.node_version }}
4444
steps:
4545
- name: Checkout repo
46-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
46+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4747

4848
- name: Get Package Version
4949
id: retrieve-package-version
@@ -84,7 +84,7 @@ jobs:
8484
_WIN_PKG_VERSION: 3.5
8585
steps:
8686
- name: Checkout repo
87-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
87+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
8888

8989
- name: Setup Unix Vars
9090
run: |
@@ -93,7 +93,7 @@ jobs:
9393
awk '{print tolower($0)}')" >> $GITHUB_ENV
9494
9595
- name: Set up Node
96-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
96+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
9797
with:
9898
cache: 'npm'
9999
cache-dependency-path: '**/package-lock.json'
@@ -130,14 +130,14 @@ jobs:
130130
matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-sha256-${{ env._PACKAGE_VERSION }}.txt
131131
132132
- name: Upload unix zip asset
133-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
133+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
134134
with:
135135
name: bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-${{ env._PACKAGE_VERSION }}.zip
136136
path: apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-${{ env._PACKAGE_VERSION }}.zip
137137
if-no-files-found: error
138138

139139
- name: Upload unix checksum asset
140-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
140+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
141141
with:
142142
name: bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-sha256-${{ env._PACKAGE_VERSION }}.txt
143143
path: apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-${{ env.LOWER_RUNNER_OS }}-sha256-${{ env._PACKAGE_VERSION }}.txt
@@ -162,7 +162,7 @@ jobs:
162162
_WIN_PKG_VERSION: 3.5
163163
steps:
164164
- name: Checkout repo
165-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
165+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
166166

167167
- name: Setup Windows builder
168168
run: |
@@ -171,7 +171,7 @@ jobs:
171171
choco install nasm --no-progress
172172
173173
- name: Set up Node
174-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
174+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
175175
with:
176176
cache: 'npm'
177177
cache-dependency-path: '**/package-lock.json'
@@ -269,33 +269,36 @@ jobs:
269269
-t sha256 | Out-File -Encoding ASCII ./dist/bw${{ matrix.license_type.artifact_prefix }}-windows-sha256-${env:_PACKAGE_VERSION}.txt
270270
271271
- name: Upload windows zip asset
272-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
272+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
273273
with:
274274
name: bw${{ matrix.license_type.artifact_prefix }}-windows-${{ env._PACKAGE_VERSION }}.zip
275275
path: apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-windows-${{ env._PACKAGE_VERSION }}.zip
276276
if-no-files-found: error
277277

278278
- name: Upload windows checksum asset
279-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
279+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
280280
with:
281281
name: bw${{ matrix.license_type.artifact_prefix }}-windows-sha256-${{ env._PACKAGE_VERSION }}.txt
282282
path: apps/cli/dist/bw${{ matrix.license_type.artifact_prefix }}-windows-sha256-${{ env._PACKAGE_VERSION }}.txt
283283
if-no-files-found: error
284284

285285
- name: Upload Chocolatey asset
286286
if: matrix.license_type.build_prefix == 'bit'
287-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
287+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
288288
with:
289289
name: bitwarden-cli.${{ env._PACKAGE_VERSION }}.nupkg
290290
path: apps/cli/dist/chocolatey/bitwarden-cli.${{ env._PACKAGE_VERSION }}.nupkg
291291
if-no-files-found: error
292+
293+
- name: Zip NPM Build Artifact
294+
run: Get-ChildItem -Path .\build | Compress-Archive -DestinationPath .\bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
292295

293296
- name: Upload NPM Build Directory asset
294297
if: matrix.license_type.build_prefix == 'bit'
295-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
298+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
296299
with:
297300
name: bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
298-
path: apps/cli/build
301+
path: apps/cli/bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
299302
if-no-files-found: error
300303

301304
snap:
@@ -309,7 +312,7 @@ jobs:
309312
_PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }}
310313
steps:
311314
- name: Checkout repo
312-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
315+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
313316

314317
- name: Print environment
315318
run: |
@@ -319,7 +322,7 @@ jobs:
319322
echo "BW Package Version: $_PACKAGE_VERSION"
320323
321324
- name: Get bw linux cli
322-
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
325+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
323326
with:
324327
name: bw-linux-${{ env._PACKAGE_VERSION }}.zip
325328
path: apps/cli/dist/snap
@@ -332,7 +335,7 @@ jobs:
332335
ls -alth
333336
334337
- name: Build snap
335-
uses: snapcore/action-build@2096990827aa966f773676c8a53793c723b6b40f # v1.2.0
338+
uses: snapcore/action-build@3bdaa03e1ba6bf59a65f84a751d943d549a54e79 # v1.3.0
336339
with:
337340
path: apps/cli/dist/snap
338341

@@ -361,14 +364,14 @@ jobs:
361364
run: sudo snap remove bw
362365

363366
- name: Upload snap asset
364-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
367+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
365368
with:
366369
name: bw_${{ env._PACKAGE_VERSION }}_amd64.snap
367370
path: apps/cli/dist/snap/bw_${{ env._PACKAGE_VERSION }}_amd64.snap
368371
if-no-files-found: error
369372

370373
- name: Upload snap checksum asset
371-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
374+
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
372375
with:
373376
name: bw-snap-sha256-${{ env._PACKAGE_VERSION }}.txt
374377
path: apps/cli/dist/snap/bw-snap-sha256-${{ env._PACKAGE_VERSION }}.txt
@@ -405,7 +408,7 @@ jobs:
405408
secrets: "devops-alerts-slack-webhook-url"
406409

407410
- name: Notify Slack on failure
408-
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
411+
uses: act10ns/slack@44541246747a30eb3102d87f7a4cc5471b0ffb7d # v2.1.0
409412
if: failure()
410413
env:
411414
SLACK_WEBHOOK_URL: ${{ steps.retrieve-secrets.outputs.devops-alerts-slack-webhook-url }}

.github/workflows/release-cli.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
release-version: ${{ steps.version.outputs.version }}
2828
steps:
2929
- name: Checkout repo
30-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
30+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3131

3232
- name: Branch check
3333
if: ${{ inputs.release_type != 'Dry Run' }}

0 commit comments

Comments
 (0)