Skip to content

Commit 121b50e

Browse files
Update to use GITHUB_TOKEN for fix commits
1 parent c8e0b29 commit 121b50e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/actions/gradle-task-with-commit/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ inputs:
1717
commit-message:
1818
description: 'The commit message to use if changes are generated'
1919
default: ''
20-
personal-access-token:
21-
description: 'The personal access token to use for checkouts'
2220
restore-cache-key:
2321
description: 'The unique identifier for the associated cache. Any other consumers or producers for this cache must use the same name.'
2422
default: 'null'
@@ -29,13 +27,11 @@ inputs:
2927
runs:
3028
using: 'composite'
3129
steps:
32-
- name: Check if access token is set
30+
- name: Check if we can push
3331
id: can-push
3432
shell: bash
3533
run: |
36-
if [[ "${{ inputs.personal-access-token }}" == '' ]]; then
37-
echo "can_push=false" >> $GITHUB_OUTPUT
38-
elif [[ "${{ env.GITHUB_REF_PROTECTED }}" == 'true' ]]; then
34+
if [[ "${{ env.GITHUB_REF_PROTECTED }}" == 'true' ]]; then
3935
echo "can_push=false" >> $GITHUB_OUTPUT
4036
elif [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
4137
echo "can_push=false" >> $GITHUB_OUTPUT
@@ -48,7 +44,6 @@ runs:
4844
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4945
if: steps.can-push.outputs.can_push == 'true'
5046
with:
51-
token: ${{ inputs.personal-access-token }}
5247
ref: ${{ github.head_ref }}
5348
fetch-depth: 0
5449

.github/workflows/kotlin.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ jobs :
5353
with :
5454
check-task : connectedCheckShardMatrixYamlCheck checkVersionIsSnapshot
5555
fix-task : connectedCheckShardMatrixYamlUpdate checkVersionIsSnapshot
56-
personal-access-token: ${{ secrets.PR_UPDATE_TOKEN }}
5756
write-cache-key : build-logic
5857

5958
artifacts-check :
@@ -69,7 +68,6 @@ jobs :
6968
with :
7069
check-task : artifactsCheck
7170
fix-task : artifactsDump
72-
personal-access-token: ${{ secrets.PR_UPDATE_TOKEN }}
7371
write-cache-key : build-logic
7472

7573
dependency-guard :
@@ -86,7 +84,6 @@ jobs :
8684
with :
8785
check-task : dependencyGuard --refresh-dependencies
8886
fix-task : dependencyGuardBaseline --refresh-dependencies
89-
personal-access-token: ${{ secrets.PR_UPDATE_TOKEN }}
9087
write-cache-key : build-logic
9188

9289
ktlint :
@@ -103,7 +100,6 @@ jobs :
103100
with :
104101
check-task : ktLintCheck
105102
fix-task : ktLintFormat
106-
personal-access-token: ${{ secrets.PR_UPDATE_TOKEN }}
107103
write-cache-key : build-logic
108104

109105
api-check :
@@ -120,7 +116,6 @@ jobs :
120116
with :
121117
check-task : apiCheck
122118
fix-task : apiDump
123-
personal-access-token: ${{ secrets.PR_UPDATE_TOKEN }}
124119
write-cache-key : build-logic
125120

126121
android-lint :

0 commit comments

Comments
 (0)