Skip to content

Commit 47c22dd

Browse files
committed
Checkout latest workflows
1 parent 42a6fac commit 47c22dd

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.github/workflows/build-web.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
node_version: ${{ steps.retrieve-node-version.outputs.node_version }}
4646
steps:
4747
- name: Checkout repo
48-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
48+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4949

5050
- name: Get GitHub sha as version
5151
id: version
@@ -91,10 +91,10 @@ jobs:
9191

9292
steps:
9393
- name: Checkout repo
94-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
94+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
9595

9696
- name: Set up Node
97-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
97+
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
9898
with:
9999
cache: 'npm'
100100
cache-dependency-path: '**/package-lock.json'
@@ -130,7 +130,7 @@ jobs:
130130
run: zip -r web-${{ env._VERSION }}-${{ matrix.name }}.zip build
131131

132132
- name: Upload ${{ matrix.name }} artifact
133-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
133+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
134134
with:
135135
name: web-${{ env._VERSION }}-${{ matrix.name }}.zip
136136
path: apps/web/web-${{ env._VERSION }}-${{ matrix.name }}.zip
@@ -157,7 +157,7 @@ jobs:
157157
_VERSION: ${{ needs.setup.outputs.version }}
158158
steps:
159159
- name: Checkout repo
160-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
160+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
161161

162162
- name: Check Branch to Publish
163163
env:
@@ -194,7 +194,7 @@ jobs:
194194
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
195195

196196
- name: Download ${{ matrix.artifact_name }} artifact
197-
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
197+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
198198
with:
199199
name: web-${{ env._VERSION }}-${{ matrix.artifact_name }}.zip
200200
path: apps/web
@@ -234,7 +234,7 @@ jobs:
234234
run: echo "name=$_AZ_REGISTRY/${PROJECT_NAME}:${IMAGE_TAG}" >> $GITHUB_OUTPUT
235235

236236
- name: Build Docker image
237-
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
237+
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
238238
with:
239239
context: apps/web
240240
file: apps/web/Dockerfile
@@ -255,7 +255,7 @@ jobs:
255255
runs-on: ubuntu-22.04
256256
steps:
257257
- name: Checkout repo
258-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
258+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
259259

260260
- name: Login to Azure
261261
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
@@ -270,7 +270,7 @@ jobs:
270270
secrets: "crowdin-api-token"
271271

272272
- name: Upload Sources
273-
uses: crowdin/github-action@c953b17499daa6be3e5afbf7a63616fb02d8b18d # v1.19.0
273+
uses: crowdin/github-action@6ed209d411599a981ccb978df3be9dc9b8a81699 # v2.1.1
274274
env:
275275
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
276276
CROWDIN_API_TOKEN: ${{ steps.retrieve-secrets.outputs.crowdin-api-token }}
@@ -345,7 +345,7 @@ jobs:
345345
secrets: "devops-alerts-slack-webhook-url"
346346

347347
- name: Notify Slack on failure
348-
uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
348+
uses: act10ns/slack@44541246747a30eb3102d87f7a4cc5471b0ffb7d # v2.1.0
349349
if: failure()
350350
env:
351351
SLACK_WEBHOOK_URL: ${{ steps.retrieve-secrets.outputs.devops-alerts-slack-webhook-url }}

.github/workflows/publish-web.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
publish_type:
99
description: 'Publish Options'
1010
required: true
11-
default: 'Initial Publish'
11+
default: 'Initial Release'
1212
type: choice
1313
options:
14-
- Initial Publish
14+
- Initial Release
1515
- Redeploy
1616
- Dry Run
1717

@@ -27,14 +27,14 @@ jobs:
2727
tag_version: ${{ steps.version.outputs.tag }}
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
33-
if: ${{ github.event.inputs.publish_type != 'Dry Run' }}
33+
if: ${{ inputs.publish_type != 'Dry Run' }}
3434
run: |
3535
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc-web" ]]; then
3636
echo "==================================="
37-
echo "[!] Can only release from the 'rc' or 'hotfix-rc-web' branches"
37+
echo "[!] Can only publish from the 'rc' or 'hotfix-rc-web' branches"
3838
echo "==================================="
3939
exit 1
4040
fi
@@ -43,7 +43,7 @@ jobs:
4343
id: version
4444
uses: bitwarden/gh-actions/release-version-check@main
4545
with:
46-
release-type: ${{ github.event.inputs.publish_type }}
46+
release-type: ${{ inputs.publish_type }}
4747
project-type: ts
4848
file: apps/web/package.json
4949
monorepo: true
@@ -56,7 +56,7 @@ jobs:
5656
env:
5757
_BRANCH_NAME: ${{ github.ref_name }}
5858
_RELEASE_VERSION: ${{ needs.setup.outputs.release_version }}
59-
_RELEASE_OPTION: ${{ github.event.inputs.publish_type }}
59+
_RELEASE_OPTION: ${{ inputs.publish_type }}
6060
steps:
6161
- name: Print environment
6262
run: |
@@ -67,7 +67,7 @@ jobs:
6767
echo "Github Release Option: $_RELEASE_OPTION"
6868
6969
- name: Checkout repo
70-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
70+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7171

7272
########## ACR ##########
7373
- name: Login to Azure - PROD Subscription
@@ -79,7 +79,7 @@ jobs:
7979
run: az acr login -n bitwardenprod
8080

8181
- name: Create GitHub deployment
82-
if: ${{ github.event.inputs.publish_type != 'Dry Run' }}
82+
if: ${{ inputs.publish_type != 'Dry Run' }}
8383
uses: chrnorm/deployment-action@55729fcebec3d284f60f5bcabbd8376437d696b1 # v2.0.7
8484
id: deployment
8585
with:
@@ -92,15 +92,15 @@ jobs:
9292

9393
- name: Pull branch image
9494
run: |
95-
if [[ "${{ github.event.inputs.publish_type }}" == "Dry Run" ]]; then
95+
if [[ "${{ inputs.publish_type }}" == "Dry Run" ]]; then
9696
docker pull $_AZ_REGISTRY/web:latest
9797
else
9898
docker pull $_AZ_REGISTRY/web:$_BRANCH_NAME
9999
fi
100100
101101
- name: Tag version
102102
run: |
103-
if [[ "${{ github.event.inputs.publish_type }}" == "Dry Run" ]]; then
103+
if [[ "${{ inputs.publish_type }}" == "Dry Run" ]]; then
104104
docker tag $_AZ_REGISTRY/web:latest $_AZ_REGISTRY/web:dryrun
105105
docker tag $_AZ_REGISTRY/web:latest $_AZ_REGISTRY/web-sh:dryrun
106106
else
@@ -112,7 +112,7 @@ jobs:
112112
113113
- name: Push version
114114
run: |
115-
if [[ "${{ github.event.inputs.publish_type }}" == "Dry Run" ]]; then
115+
if [[ "${{ inputs.publish_type }}" == "Dry Run" ]]; then
116116
docker push $_AZ_REGISTRY/web:dryrun
117117
docker push $_AZ_REGISTRY/web-sh:dryrun
118118
else
@@ -123,7 +123,7 @@ jobs:
123123
fi
124124
125125
- name: Update deployment status to Success
126-
if: ${{ github.event.inputs.publish_type != 'Dry Run' && success() }}
126+
if: ${{ inputs.publish_type != 'Dry Run' && success() }}
127127
uses: chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3
128128
with:
129129
token: '${{ secrets.GITHUB_TOKEN }}'
@@ -132,7 +132,7 @@ jobs:
132132
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
133133

134134
- name: Update deployment status to Failure
135-
if: ${{ github.event.inputs.publish_type != 'Dry Run' && failure() }}
135+
if: ${{ inputs.publish_type != 'Dry Run' && failure() }}
136136
uses: chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3
137137
with:
138138
token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/release-web.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
tag_version: ${{ steps.version.outputs.tag }}
2525
steps:
2626
- name: Checkout repo
27-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2828

2929
- name: Branch check
3030
if: ${{ github.event.inputs.release_type != 'Dry Run' }}

0 commit comments

Comments
 (0)