3232 check_documentation :
3333 runs-on : ubuntu-latest
3434 steps :
35- - uses : actions/checkout@v4
36- - uses : actions/setup-dotnet@v4
35+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
36+ - uses : actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
3737 - run : dotnet run --project src/DocumentationGenerator/DocumentationGenerator.csproj
3838 - run : git status
3939 if : failure()
6060 env :
6161 RepositoryBranch : ${{github.ref}}
6262 steps :
63- - uses : actions/checkout@v4
63+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6464 - name : Setup .NET Core
65- uses : actions/setup-dotnet@v4
65+ uses : actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
6666
6767 - run : dotnet run --project src/ListDotNetTypes/ListDotNetTypes.csproj -- src/Meziantou.Analyzer/Resources/
6868
@@ -88,14 +88,14 @@ jobs:
8888 - run : dotnet pack src/Meziantou.Analyzer.Pack/Meziantou.Analyzer.Pack.csproj --configuration Release --no-build /p:Version=${{ needs.compute_package_version.outputs.package_version }} /bl:Meziantou.Analyzer.Pack.pack.binlog
8989 - run : dotnet pack src/Meziantou.Analyzer.Annotations/Meziantou.Analyzer.Annotations.csproj --configuration Release /bl:Meziantou.Analyzer.Annotations.pack.binlog
9090
91- - uses : actions/upload-artifact@v4
91+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
9292 with :
9393 name : nuget
9494 if-no-files-found : error
9595 retention-days : 3
9696 path : ' **/*.nupkg'
9797
98- - uses : actions/upload-artifact@v4
98+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
9999 if : always()
100100 with :
101101 name : binlog
@@ -107,10 +107,10 @@ jobs:
107107 runs-on : ubuntu-latest
108108 needs : [ create_nuget ]
109109 steps :
110- - uses : actions/checkout@v4
110+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
111111 - name : Setup .NET Core (global.json)
112- uses : actions/setup-dotnet@v4
113- - uses : actions/download-artifact@v4
112+ uses : actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
113+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
114114 with :
115115 name : nuget
116116 path : ${{ env.NuGetDirectory }}
@@ -140,12 +140,12 @@ jobs:
140140 roslyn-version : [ 'roslyn4.2', 'roslyn4.4', 'roslyn4.6', 'roslyn4.8', 'roslyn4.14', 'roslyn5.0', 'default' ]
141141 fail-fast : false
142142 steps :
143- - uses : actions/checkout@v4
143+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
144144 - name : Setup .NET Core (global.json)
145- uses : actions/setup-dotnet@v4
145+ uses : actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
146146 - run : dotnet test --configuration ${{ matrix.configuration }} --results-directory "${{ env.TestResultsDirectory }}" /p:RoslynVersion=${{ matrix.roslyn-version}}
147147 name : Run tests
148- - uses : actions/upload-artifact@v4
148+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
149149 if : always()
150150 with :
151151 name : test-results-${{ matrix.runs-on }}-${{ matrix.roslyn-version }}-${{ matrix.configuration }}
@@ -160,18 +160,18 @@ jobs:
160160 contents : read
161161 id-token : write
162162 steps :
163- - uses : actions/checkout@v4
163+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
164164 with :
165165 fetch-depth : 2
166- - uses : actions/download-artifact@v4
166+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
167167 with :
168168 name : nuget
169169 path : ${{ env.NuGetDirectory }}
170170 - name : Setup .NET Core
171- uses : actions/setup-dotnet@v4
171+ uses : actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
172172 - name : NuGet login (OIDC → temp API key)
173173 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
174- uses : NuGet/login@v1
174+ uses : NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1
175175 id : login
176176 with :
177177 user : meziantou
@@ -203,7 +203,7 @@ jobs:
203203 permissions :
204204 contents : write
205205 steps :
206- - uses : actions/checkout@v4
206+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
207207 - run : ' gh release create "${{ needs.compute_package_version.outputs.package_version }}" --generate-notes --notes "NuGet package: <https://www.nuget.org/packages/Meziantou.Analyzer/${{ needs.compute_package_version.outputs.package_version }}>"'
208208 env :
209209 GH_TOKEN : ${{ github.token }}
0 commit comments