File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 DOTNET_INSTALL_DIR : " ./.dotnet"
1919 DOTNET_ROLL_FORWARD : " Major"
2020
21+ permissions :
22+ packages : write
23+
2124jobs :
2225 docker :
2326 name : ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
6467 docker_registry_username : ${{ secrets.DOCKER_USERNAME }}
6568 docker_registry_password : ${{ secrets.DOCKER_PASSWORD }}
6669 github_registry_username : ${{ github.repository_owner }}
67- github_registry_password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
70+ github_registry_password : ${{ github.token }}
Original file line number Diff line number Diff line change 1212 DOTNET_INSTALL_DIR : " ./.dotnet"
1313 DOTNET_ROLL_FORWARD : " Major"
1414
15+ permissions :
16+ packages : write
17+
1518jobs :
1619 manifest :
1720 name : ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
4346 docker_registry_username : ${{ secrets.DOCKER_USERNAME }}
4447 docker_registry_password : ${{ secrets.DOCKER_PASSWORD }}
4548 github_registry_username : ${{ github.repository_owner }}
46- github_registry_password : ${{ secrets.DOCKER_GITHUB_TOKEN }}
49+ github_registry_password : ${{ github.token }}
Original file line number Diff line number Diff line change 3434 DOTNET_NOLOGO : 1
3535 TESTINGPLATFORM_TELEMETRY_OPTOUT : 1
3636
37- ENABLED_DIAGNOSTICS : ${{ secrets .ENABLED_DIAGNOSTICS }}
37+ ENABLED_DIAGNOSTICS : ${{ vars .ENABLED_DIAGNOSTICS }}
3838
3939permissions :
4040 id-token : write
@@ -122,8 +122,14 @@ jobs:
122122 name : Release
123123 needs : [ publish, docker_linux_manifests ]
124124 runs-on : windows-2025
125+ permissions :
126+ contents : write
127+ packages : write
128+ id-token : write
129+ attestations : write
130+ issues : write
125131 env :
126- GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
132+ GITHUB_TOKEN : ${{ github.token }}
127133 steps :
128134 -
129135 name : Checkout
Original file line number Diff line number Diff line change @@ -121,11 +121,14 @@ jobs:
121121 reporter : ${{ steps.reporter.outputs.value }}
122122
123123 publish :
124+ if : github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
124125 name : Publish docs
125126 needs : [ validate ]
126127 runs-on : ubuntu-24.04
128+ permissions :
129+ contents : write
127130 env :
128- GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
131+ GITHUB_TOKEN : ${{ github.token }}
129132 GITHUB_USERNAME : ${{ github.actor }}
130133 steps :
131134 -
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ defaults:
2929 run :
3030 shell : pwsh
3131
32+ permissions :
33+ contents : write
34+
3235jobs :
3336 docs :
3437 name : Update Markdown (embedded snippets)
3841 name : Checkout
3942 uses : actions/checkout@v6
4043 if : github.event_name == 'push'
41- with :
42- token : ${{ secrets.PUSH_GITHUB_TOKEN }}
4344 -
4445 name : Checkout
4546 uses : actions/checkout@v6
6869 git config user.email 'gittoolsbot@outlook.com'
6970 git commit -m 'Docs changes' --allow-empty
7071 git push --force
71- if : steps.status.outputs.has_changes == '1'
72+ if : steps.status.outputs.has_changes == '1' && github.event_name == 'push'
Original file line number Diff line number Diff line change @@ -10,21 +10,19 @@ defaults:
1010 shell : pwsh
1111
1212permissions :
13- contents : read
13+ contents : write
1414
1515jobs :
1616 homebrew :
1717 permissions :
18- contents : none
18+ contents : write
1919 name : Mark public API as shipped
2020 runs-on : ubuntu-24.04
2121 steps :
2222 -
2323 name : Checkout
2424 uses : actions/checkout@v6
2525 if : github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
26- with :
27- token : ${{ secrets.PUSH_GITHUB_TOKEN }}
2826 -
2927 name : Mark public API as shipped
3028 run : ./src/mark-shipped.ps1
You can’t perform that action at this time.
0 commit comments