@ -16,7 +16,7 @@ jobs:
@@ -16,7 +16,7 @@ jobs:
runs-on : ubuntu-22.04
steps:
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Install cloc
run : |
@ -31,7 +31,7 @@ jobs:
@@ -31,7 +31,7 @@ jobs:
runs-on : ubuntu-22.04
steps:
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Verify Format
run : dotnet format --verify-no-changes
@ -43,7 +43,7 @@ jobs:
@@ -43,7 +43,7 @@ jobs:
NUGET_PACKAGES : ${{ github.workspace }}/.nuget/packages
steps:
- name : Set up dotnet
uses : actions/setup-dotnet@9211491ffb35dd6a6657ca4f45d43dfe6e97c829 # v2.0.0
uses : actions/setup-dotnet@a351d9ea84bc76ec7508debf02a39d88f8b6c0c0 # v2.1.1
with:
dotnet-version : "6.0.x"
@ -55,7 +55,7 @@ jobs:
@@ -55,7 +55,7 @@ jobs:
echo "GitHub event: $GITHUB_EVENT"
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Restore
run : dotnet restore --locked-mode
@ -131,10 +131,10 @@ jobs:
@@ -131,10 +131,10 @@ jobs:
dotnet : true
steps:
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Set up Node
uses : actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3.0 .0
uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6 .0
with:
cache : "npm"
cache-dependency-path : "**/package-lock.json"
@ -178,7 +178,7 @@ jobs:
@@ -178,7 +178,7 @@ jobs:
ls -atlh ../../../
- name : Upload project artifact
uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name : ${{ matrix.project_name }}.zip
path : ${{ matrix.base_path }}/${{ matrix.project_name }}/${{ matrix.project_name }}.zip
@ -255,7 +255,7 @@ jobs:
@@ -255,7 +255,7 @@ jobs:
dotnet : true
steps:
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Check Branch to Publish
env:
@ -272,7 +272,7 @@ jobs:
@@ -272,7 +272,7 @@ jobs:
########## ACRs ##########
- name : Login to Azure - QA Subscription
uses : Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf # v1.4.3
uses : Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
with:
creds : ${{ secrets.AZURE_QA_KV_CREDENTIALS }}
@ -280,7 +280,7 @@ jobs:
@@ -280,7 +280,7 @@ jobs:
run : az acr login -n bitwardenqa
- name : Login to Azure - PROD Subscription
uses : Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf # v1.4.3
uses : Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
with:
creds : ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
@ -288,7 +288,7 @@ jobs:
@@ -288,7 +288,7 @@ jobs:
run : az acr login -n bitwardenprod
- name : Login to Azure - CI Subscription
uses : Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf # v1.4.3
uses : Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
with:
creds : ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
@ -351,7 +351,7 @@ jobs:
@@ -351,7 +351,7 @@ jobs:
- name : Get build artifact
if : ${{ matrix.dotnet }}
uses : actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0
uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name : ${{ matrix.project_name }}.zip
@ -363,7 +363,7 @@ jobs:
@@ -363,7 +363,7 @@ jobs:
-d ${{ matrix.base_path }}/${{ matrix.project_name }}/obj/build-output/publish
- name : Build Docker image
uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v3.2.0
uses : docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6 # v3.3.1
with:
context : ${{ matrix.base_path }}/${{ matrix.project_name }}
file : ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
@ -393,12 +393,12 @@ jobs:
@@ -393,12 +393,12 @@ jobs:
needs : build-docker
steps:
- name : Set up dotnet
uses : actions/setup-dotnet@9211491ffb35dd6a6657ca4f45d43dfe6e97c829 # v3.0.3
uses : actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
with:
dotnet-version : "6.0.x"
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Restore
run : dotnet tool restore
@ -431,7 +431,7 @@ jobs:
@@ -431,7 +431,7 @@ jobs:
- name : Upload Docker stub artifact
if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc'
uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name : docker-stub.zip
path : docker-stub.zip
@ -439,7 +439,7 @@ jobs:
@@ -439,7 +439,7 @@ jobs:
- name : Upload Docker stub checksum artifact
if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc'
uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name : docker-stub-sha256.txt
path : docker-stub-sha256.txt
@ -465,7 +465,7 @@ jobs:
@@ -465,7 +465,7 @@ jobs:
GLOBALSETTINGS__SQLSERVER__CONNECTIONSTRING : "placeholder"
- name : Upload Swagger artifact
uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name : swagger.json
path : swagger.json
@ -490,7 +490,7 @@ jobs:
@@ -490,7 +490,7 @@ jobs:
steps:
- name : Checkout repo
uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name : Print environment
run : |
@ -509,7 +509,7 @@ jobs:
@@ -509,7 +509,7 @@ jobs:
- name : Upload project artifact Windows
if : ${{ contains(matrix.target, 'win') == true }}
uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name : MsSqlMigratorUtility-${{ matrix.target }}
path : util/MsSqlMigratorUtility/obj/build-output/publish/MsSqlMigratorUtility.exe
@ -517,7 +517,7 @@ jobs:
@@ -517,7 +517,7 @@ jobs:
- name : Upload project artifact
if : ${{ contains(matrix.target, 'win') == false }}
uses : actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name : MsSqlMigratorUtility-${{ matrix.target }}
path : util/MsSqlMigratorUtility/obj/build-output/publish/MsSqlMigratorUtility
@ -579,7 +579,7 @@ jobs:
@@ -579,7 +579,7 @@ jobs:
fi
- name : Login to Azure - CI subscription
uses : Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf # v1.4.3
uses : Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
if : failure()
with:
creds : ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}