@@ -47,13 +47,22 @@ jobs :
4747 steps :
4848 - name : Checkout
4949 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
50+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
51+ # to be triggered again.
52+ - name : Generate App Token
53+ uses : actions/create-github-app-token@v2
54+ id : app-token
55+ with :
56+ app-id : ${{ vars.APP_ID }}
57+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
5058
5159 - name : check published artifacts
5260 uses : ./.github/actions/gradle-task-with-commit
5361 with :
5462 check-task : connectedCheckShardMatrixYamlCheck checkVersionIsSnapshot
5563 fix-task : connectedCheckShardMatrixYamlUpdate checkVersionIsSnapshot
5664 write-cache-key : build-logic
65+ access-token : ${{ steps.app-token.outputs.token }}
5766
5867 artifacts-check :
5968 name : ArtifactsCheck
@@ -62,20 +71,37 @@ jobs :
6271 steps :
6372 - name : Checkout
6473 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
74+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
75+ # to be triggered again.
76+ - name : Generate App Token
77+ uses : actions/create-github-app-token@v2
78+ id : app-token
79+ with :
80+ app-id : ${{ vars.APP_ID }}
81+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
6582
6683 - name : check published artifacts
6784 uses : ./.github/actions/gradle-task-with-commit
6885 with :
6986 check-task : artifactsCheck
7087 fix-task : artifactsDump
7188 write-cache-key : build-logic
89+ access-token : ${{ steps.app-token.outputs.token }}
7290
7391 dependency-guard :
7492 name : Dependency Guard
7593 runs-on : ubuntu-latest
7694 steps :
7795 - name : Checkout
7896 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
97+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
98+ # to be triggered again.
99+ - name : Generate App Token
100+ uses : actions/create-github-app-token@v2
101+ id : app-token
102+ with :
103+ app-id : ${{ vars.APP_ID }}
104+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
79105
80106 # If the PR was made by a maintainer or Renovate, automatically update baselines and push
81107 # so that no one has to check out the branch and update the baselines manually.
@@ -85,13 +111,22 @@ jobs :
85111 check-task : dependencyGuard --refresh-dependencies
86112 fix-task : dependencyGuardBaseline --refresh-dependencies
87113 write-cache-key : build-logic
114+ access-token : ${{ steps.app-token.outputs.token }}
88115
89116 ktlint :
90117 name : KtLint
91118 runs-on : ubuntu-latest
92119 steps :
93120 - name : Checkout
94121 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
122+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
123+ # to be triggered again.
124+ - name : Generate App Token
125+ uses : actions/create-github-app-token@v2
126+ id : app-token
127+ with :
128+ app-id : ${{ vars.APP_ID }}
129+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
95130
96131 # If the PR was made by a maintainer or Renovate, automatically format and push
97132 # so that no one has to check out the branch and do it manually.
@@ -101,13 +136,22 @@ jobs :
101136 check-task : ktLintCheck
102137 fix-task : ktLintFormat
103138 write-cache-key : build-logic
139+ access-token : ${{ steps.app-token.outputs.token }}
104140
105141 api-check :
106142 name : Api check
107143 runs-on : ubuntu-latest
108144 steps :
109145 - name : Checkout
110146 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
147+ # We use the workflow-pr-fixer app to authenticate and get a token that will cause the workflow
148+ # to be triggered again.
149+ - name : Generate App Token
150+ uses : actions/create-github-app-token@v2
151+ id : app-token
152+ with :
153+ app-id : ${{ vars.APP_ID }}
154+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
111155
112156 # If the PR was made by a maintainer or Renovate, automatically format and push
113157 # so that no one has to check out the branch and do it manually.
@@ -117,6 +161,7 @@ jobs :
117161 check-task : apiCheck
118162 fix-task : apiDump
119163 write-cache-key : build-logic
164+ access-token : ${{ steps.app-token.outputs.token }}
120165
121166 android-lint :
122167 name : Android Lint
0 commit comments