Skip to content

Commit 9da03e4

Browse files
Pin GitHub Actions to full-length commit SHAs (#320)
1 parent 32d3c13 commit 9da03e4

5 files changed

Lines changed: 26 additions & 15 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
groups:
6+
github-actions:
7+
patterns: ["*"]
8+
schedule:
9+
interval: "weekly"
10+
cooldown:
11+
default-days: 7

.github/workflows/main-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-22.04
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1818

1919
- name: create ArtifactStagingDirectory folder
2020
run: mkdir drop
@@ -41,7 +41,7 @@ jobs:
4141
# Building and testing .NET
4242

4343
- name: Setup .NET
44-
uses: actions/setup-dotnet@v4
44+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
4545
with:
4646
dotnet-version: 8.0.x
4747

@@ -94,7 +94,7 @@ jobs:
9494
run: cp durablefunctionsmonitor.dotnetisolated/LICENSE.txt drop/durablefunctionsmonitor.dotnetisolated/output
9595

9696
- name: Install latest nuget.exe
97-
uses: nuget/setup-nuget@v1.2.0
97+
uses: nuget/setup-nuget@296fd3ccf8528660c91106efefe2364482f86d6f # v1.2.0
9898
- name: package dotnetbackend into a Nuget package
9999
run: nuget pack drop/durablefunctionsmonitor.dotnetbackend/output/nuspec.nuspec -OutputDirectory drop
100100
- name: package dotnetisolated into a Nuget package
@@ -103,7 +103,7 @@ jobs:
103103
# Publish artifacts
104104

105105
- name: publish artifacts
106-
uses: actions/upload-artifact@v4.1.0
106+
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
107107
with:
108108
path: drop
109109

.github/workflows/push-to-docker-hub.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1818

1919
# Building and copying React
2020

@@ -38,7 +38,7 @@ jobs:
3838
# Building and testing .NET
3939

4040
- name: Setup .NET
41-
uses: actions/setup-dotnet@v4
41+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
4242
with:
4343
dotnet-version: 8.0.x
4444

@@ -48,27 +48,27 @@ jobs:
4848
run: dotnet test tests/durablefunctionsmonitor.dotnetisolated.core.tests/*.csproj
4949

5050
- name: login to Docker hub
51-
uses: docker/login-action@v3
51+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
5252
with:
5353
username: ${{ secrets.DOCKERHUB_USERNAME }}
5454
password: ${{ secrets.DOCKERHUB_TOKEN }}
5555

5656
- name: build and push durablefunctionsmonitor.dotnetbackend
57-
uses: docker/build-push-action@v6
57+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
5858
with:
5959
context: ./durablefunctionsmonitor.dotnetbackend
6060
push: true
6161
tags: scaletone/durablefunctionsmonitor:${{ github.event.inputs.imageTag }}
6262

6363
- name: build and push custom-backends/mssql
64-
uses: docker/build-push-action@v6
64+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
6565
with:
6666
context: ./custom-backends/mssql
6767
push: true
6868
tags: scaletone/durablefunctionsmonitor.mssql:${{ github.event.inputs.imageTag }}
6969

7070
- name: build and push custom-backends/netherite
71-
uses: docker/build-push-action@v6
71+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
7272
with:
7373
context: ./custom-backends/netherite
7474
push: true

.github/workflows/push-to-nuget.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-22.04
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1414

1515
- name: create ArtifactStagingDirectory folder
1616
run: mkdir drop
@@ -37,7 +37,7 @@ jobs:
3737
# Building and testing .NET
3838

3939
- name: Setup .NET
40-
uses: actions/setup-dotnet@v4
40+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
4141
with:
4242
dotnet-version: 8.0.x
4343

@@ -69,7 +69,7 @@ jobs:
6969
run: cp durablefunctionsmonitor.dotnetisolated/LICENSE.txt drop/dotnetIsolated-mssql/output
7070

7171
- name: Install latest nuget.exe
72-
uses: nuget/setup-nuget@v1.2.0
72+
uses: nuget/setup-nuget@296fd3ccf8528660c91106efefe2364482f86d6f # v1.2.0
7373
- name: package dotnetbackend into a Nuget package
7474
run: nuget pack drop/durablefunctionsmonitor.dotnetbackend/output/nuspec.nuspec -OutputDirectory drop
7575
- name: package dotnetisolated into a Nuget package

.github/workflows/push-to-vscode-marketplace.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1414

1515
- name: create ArtifactStagingDirectory folder
1616
run: mkdir drop
@@ -37,7 +37,7 @@ jobs:
3737
# Building and testing .NET
3838

3939
- name: Setup .NET
40-
uses: actions/setup-dotnet@v4
40+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
4141
with:
4242
dotnet-version: 8.0.x
4343

0 commit comments

Comments
 (0)