Skip to content

Commit ee7ae8c

Browse files
ci: Pin GitHub Actions to full-length commit SHAs (#1451)
1 parent b7b2ed5 commit ee7ae8c

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ updates:
1919
schedule:
2020
interval: daily
2121
open-pull-requests-limit: 10
22+
cooldown:
23+
default-days: 7
2224
- package-ecosystem: gitsubmodule
2325
directory: "/"
2426
schedule:
2527
interval: daily
26-
open-pull-requests-limit: 1
28+
open-pull-requests-limit: 1

‎.github/workflows/codeql.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545

4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@v5
48+
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
4949
with:
5050
submodules: recursive
5151

5252
# Initializes the CodeQL tools for scanning.
5353
- name: Initialize CodeQL
54-
uses: github/codeql-action/init@v4
54+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
5555
with:
5656
languages: ${{ matrix.language }}
5757
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -65,7 +65,7 @@ jobs:
6565
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6666
# If this step fails, then you should remove it and run the build manually (see below)
6767
- name: Autobuild
68-
uses: github/codeql-action/autobuild@v4
68+
uses: github/codeql-action/autobuild@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
6969
with:
7070
working-directory: ${{ github.workspace }}/src/Typewriter
7171

@@ -80,6 +80,6 @@ jobs:
8080
# ./location_of_script_within_repo/buildscript.sh
8181

8282
- name: Perform CodeQL Analysis
83-
uses: github/codeql-action/analyze@v4
83+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
8484
with:
8585
category: "/language:${{matrix.language}}"

‎.github/workflows/dotnet.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
1616
with:
1717
submodules: recursive
1818
- name: Setup .NET
19-
uses: actions/setup-dotnet@v5.0.0
19+
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
2020
with:
2121
dotnet-version: 8.0.x
2222
- name: Restore dependencies
@@ -26,13 +26,13 @@ jobs:
2626
- name: Test
2727
run: dotnet test ./Typewriter.sln --no-build --verbosity normal
2828
- name: Upload languages test output on failure
29-
uses: actions/upload-artifact@v5
29+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3030
if: ${{ failure() }}
3131
with:
3232
name: languages-test-output
3333
path: 'test/Typewriter.Test/bin/Debug/net8.0/OutputDirectory*/**'
3434
- name: Upload unit test output on failure
35-
uses: actions/upload-artifact@v5
35+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3636
if: ${{ failure() }}
3737
with:
3838
name: unit-test-output

0 commit comments

Comments
 (0)