Skip to content

Commit bc75417

Browse files
Pin GitHub Actions to full-length commit SHAs (#235)
1 parent 3235e41 commit bc75417

33 files changed

Lines changed: 140 additions & 129 deletions

.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/Algorithms_Scenario01.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/tests/Algorithms.Core.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -28,15 +28,15 @@ jobs:
2828
- name: Test
2929
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
3030
- name: ReportGenerator
31-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
31+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3232
with:
3333
reports: '${{ github.workspace }}/report.cobertura.xml'
3434
targetdir: '${{ github.workspace }}/coveragereport'
3535
reporttypes: 'MarkdownSummaryGithub'
3636
- name: Upload coverage into summary
3737
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4040
with:
4141
name: code-coverage-report
4242
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Algorithms_Scenario02.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/tests/Algorithms.Core.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -28,15 +28,15 @@ jobs:
2828
- name: Test
2929
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura --coverage-settings ../../scenarios/scenario02/coverage.config
3030
- name: ReportGenerator
31-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
31+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3232
with:
3333
reports: '${{ github.workspace }}/report.cobertura.xml'
3434
targetdir: '${{ github.workspace }}/coveragereport'
3535
reporttypes: 'MarkdownSummaryGithub'
3636
- name: Upload coverage into summary
3737
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4040
with:
4141
name: code-coverage-report
4242
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Algorithms_Scenario03.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/tests/Algorithms.Core.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -28,15 +28,15 @@ jobs:
2828
- name: Test
2929
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
3030
- name: ReportGenerator
31-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
31+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3232
with:
3333
reports: '${{ github.workspace }}/report.cobertura.xml'
3434
targetdir: '${{ github.workspace }}/coveragereport'
3535
reporttypes: 'MarkdownSummaryGithub'
3636
- name: Upload coverage into summary
3737
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4040
with:
4141
name: code-coverage-report
4242
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Algorithms_Scenario04.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/tests/Algorithms.Core.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -30,15 +30,15 @@ jobs:
3030
- name: Test
3131
run: dotnet-coverage collect --output $GITHUB_WORKSPACE/report.cobertura.xml --output-format cobertura "dotnet run --no-build"
3232
- name: ReportGenerator
33-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
33+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3434
with:
3535
reports: '${{ github.workspace }}/report.cobertura.xml'
3636
targetdir: '${{ github.workspace }}/coveragereport'
3737
reporttypes: 'MarkdownSummaryGithub'
3838
- name: Upload coverage into summary
3939
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
4040
- name: Archive code coverage results
41-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4242
with:
4343
name: code-coverage-report
4444
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Algorithms_Scenario05.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/src/Algorithms.Console
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Publish
@@ -28,15 +28,15 @@ jobs:
2828
- name: Run
2929
run: dotnet-coverage collect --output $GITHUB_WORKSPACE/report.cobertura.xml --output-format cobertura ./bin/Release/net8.0/linux-x64/publish/Algorithms.Console
3030
- name: ReportGenerator
31-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
31+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3232
with:
3333
reports: '${{ github.workspace }}/report.cobertura.xml'
3434
targetdir: '${{ github.workspace }}/coveragereport'
3535
reporttypes: 'MarkdownSummaryGithub'
3636
- name: Upload coverage into summary
3737
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4040
with:
4141
name: code-coverage-report
4242
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Algorithms_Scenario06.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/tests/Algorithms.Core.NativeAot.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Publish
2525
run: dotnet publish -r linux-x64 -c Release /p:AotMsCodeCoverageInstrumentation="true"
2626
- name: Run
2727
run: ./bin/Release/net8.0/linux-x64/publish/Algorithms.Core.NativeAot.Tests --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
2828
- name: ReportGenerator
29-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
29+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3030
with:
3131
reports: '${{ github.workspace }}/report.cobertura.xml'
3232
targetdir: '${{ github.workspace }}/coveragereport'
3333
reporttypes: 'MarkdownSummaryGithub'
3434
- name: Upload coverage into summary
3535
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3636
- name: Archive code coverage results
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3838
with:
3939
name: code-coverage-report
4040
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Algorithms_Scenario07.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Algorithms/tests/Algorithms.Core.MSTest.Sdk.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -28,15 +28,15 @@ jobs:
2828
- name: Test
2929
run: dotnet run --no-build --coverage --coverage-output $GITHUB_WORKSPACE/report.cobertura.xml --coverage-output-format cobertura
3030
- name: ReportGenerator
31-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
31+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3232
with:
3333
reports: '${{ github.workspace }}/report.cobertura.xml'
3434
targetdir: '${{ github.workspace }}/coveragereport'
3535
reporttypes: 'MarkdownSummaryGithub'
3636
- name: Upload coverage into summary
3737
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4040
with:
4141
name: code-coverage-report
4242
path: ${{ github.workspace }}/report.cobertura.xml

.github/workflows/Calculator_Scenario01.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Calculator/tests/Calculator.Core.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -32,15 +32,15 @@ jobs:
3232
- name: Convert .coverage report to cobertura
3333
run: dotnet-coverage merge $GITHUB_WORKSPACE/samples/Calculator/tests/Calculator.Core.Tests/TestResults/**/*.coverage -f cobertura -o $GITHUB_WORKSPACE/report.cobertura.xml
3434
- name: ReportGenerator
35-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
35+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3636
with:
3737
reports: '${{ github.workspace }}/report.cobertura.xml'
3838
targetdir: '${{ github.workspace }}/coveragereport'
3939
reporttypes: 'MarkdownSummaryGithub'
4040
- name: Upload coverage into summary
4141
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
4242
- name: Archive code coverage results
43-
uses: actions/upload-artifact@v4
43+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4444
with:
4545
name: code-coverage-report
4646
path: ./**/TestResults/**/*.coverage

.github/workflows/Calculator_Scenario02.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
run:
1717
working-directory: ./samples/Calculator/tests/Calculator.Core.Tests
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2020
- name: Setup .NET
21-
uses: actions/setup-dotnet@v4
21+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
2222
with:
2323
dotnet-version: 8.0.x
2424
- name: Restore dependencies
@@ -28,15 +28,15 @@ jobs:
2828
- name: Test
2929
run: dotnet test --collect "Code Coverage;Format=cobertura" --no-build --verbosity normal
3030
- name: ReportGenerator
31-
uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0
31+
uses: danielpalme/ReportGenerator-GitHub-Action@4d510cbed8a05af5aefea46c7fd6e05b95844c89 # 5.2.0
3232
with:
3333
reports: './**/TestResults/**/*.cobertura.xml'
3434
targetdir: '${{ github.workspace }}/coveragereport'
3535
reporttypes: 'MarkdownSummaryGithub'
3636
- name: Upload coverage into summary
3737
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
3838
- name: Archive code coverage results
39-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4040
with:
4141
name: code-coverage-report
4242
path: ./**/TestResults/**/*.cobertura.xml

0 commit comments

Comments
 (0)