File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ concurrency:
1515 group : ${{ github.workflow }}-${{ github.ref }}
1616 cancel-in-progress : true
1717
18- # Default permissions
19- permissions : read-all
18+ # Default permissions. Read-only at the workflow level, with the single job that needs to write
19+ # requesting exactly what it needs below.
20+ permissions :
21+ contents : read
2022
2123env :
2224 DOTNET_VERSION : " 10.0"
3234
3335 steps :
3436 - name : Checkout Repository
35- uses : actions/checkout@v4
37+ uses : actions/checkout@v7
3638 with :
3739 fetch-depth : 0
3840 fetch-tags : true
@@ -41,11 +43,17 @@ jobs:
4143 persist-credentials : true
4244
4345 - name : Setup .NET SDK ${{ env.DOTNET_VERSION }}
44- uses : actions/setup-dotnet@v4
46+ uses : actions/setup-dotnet@v6
4547 with :
4648 dotnet-version : ${{ env.DOTNET_VERSION }}.x
49+ # Keyed on the files that actually pin versions. See the same note in dotnet.yml. This
50+ # workflow rewrites the SDK versions in global.json, so including it here also means the
51+ # verification build after an update does not restore against a stale key.
4752 cache : true
48- cache-dependency-path : " **/*.csproj"
53+ cache-dependency-path : |
54+ **/*.csproj
55+ **/Directory.Packages.props
56+ **/global.json
4957
5058 - name : Configure Git
5159 run : |
You can’t perform that action at this time.
0 commit comments