Skip to content

Commit d45f912

Browse files
authored
setup-r-deps: replace github-token param with GITHUB_PAT env var (#262)
Fix the issue when private repos cannot be accessed: https://github.com/insightsengineering/citril/actions/runs/11717635984/job/32642879518?pr=464 - `github-token` was not used and removed in a companion PR: insightsengineering/setup-r-dependencies#17 - set up `GITHUB_ENV` on setup-r-deps use --------- Signed-off-by: Pawel Rucki <[email protected]>
1 parent 7efc90c commit d45f912

File tree

8 files changed

+18
-9
lines changed

8 files changed

+18
-9
lines changed

.github/workflows/bioccheck.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ jobs:
159159
if: >-
160160
inputs.deps-installation-method == 'setup-r-dependencies'
161161
uses: insightsengineering/setup-r-dependencies@v1
162+
env:
163+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
162164
with:
163165
lookup-refs: ${{ inputs.lookup-refs }}
164-
github-token: ${{ steps.github-token.outputs.token }}
165166
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
166167

167168
- name: Run BiocCheck ☣️

.github/workflows/build-check-install.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,10 @@ jobs:
437437
env.deps_installation_method == 'setup-r-dependencies'
438438
&& inputs.install-deps-from-package-repositories == ''
439439
uses: insightsengineering/setup-r-dependencies@v1
440+
env:
441+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
440442
with:
441443
lookup-refs: ${{ inputs.lookup-refs }}
442-
github-token: ${{ steps.github-token.outputs.token }}
443444
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
444445
skip-desc-branch: ${{ inputs.skip-desc-branch }}
445446
skip-desc-dev: ${{ inputs.skip-desc-dev }}

.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,10 @@ jobs:
231231
if: >-
232232
inputs.deps-installation-method == 'setup-r-dependencies'
233233
uses: insightsengineering/setup-r-dependencies@v1
234+
env:
235+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
234236
with:
235237
lookup-refs: ${{ inputs.lookup-refs }}
236-
github-token: ${{ steps.github-token.outputs.token }}
237238
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
238239

239240
- name: Install R package 🚧

.github/workflows/revdepcheck.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ jobs:
9292

9393
- name: Install dependencies
9494
uses: insightsengineering/setup-r-dependencies@v1
95+
env:
96+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
9597
with:
9698
lookup-refs: ${{ inputs.lookup-refs }}
9799
skip-desc-branch: true
98-
github-token: ${{ steps.github-token.outputs.token }}
99100

100101
- name: revdepcheck 🔄
101102
id: revdepcheck

.github/workflows/rhub.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ jobs:
9797
job-config: ${{ matrix.config.job-config }}
9898

9999
- uses: insightsengineering/setup-r-dependencies@v1
100+
env:
101+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
100102
with:
101103
lookup-refs: ${{ inputs.lookup-refs }}
102104
skip-install: true
103-
github-token: ${{ steps.github-token.outputs.token }}
104105
restore-description: false
105106
install-quarto: "false"
106107

@@ -149,10 +150,11 @@ jobs:
149150
job-config: ${{ matrix.config.job-config }}
150151

151152
- uses: insightsengineering/setup-r-dependencies@v1
153+
env:
154+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
152155
with:
153156
lookup-refs: ${{ inputs.lookup-refs }}
154157
skip-install: true
155-
github-token: ${{ steps.github-token.outputs.token }}
156158
restore-description: false
157159
install-quarto: "false"
158160

.github/workflows/roxygen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ jobs:
153153
if: >-
154154
env.deps_installation_method == 'setup-r-dependencies'
155155
uses: insightsengineering/setup-r-dependencies@v1
156+
env:
157+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
156158
with:
157159
lookup-refs: ${{ inputs.lookup-refs }}
158-
github-token: ${{ steps.github-token.outputs.token }}
159160
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
160161

161162
- name: Generate man pages 📄

.github/workflows/test-coverage.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@ jobs:
244244
if: >-
245245
inputs.deps-installation-method == 'setup-r-dependencies'
246246
uses: insightsengineering/setup-r-dependencies@v1
247+
env:
248+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
247249
with:
248250
lookup-refs: ${{ inputs.lookup-refs }}
249-
github-token: ${{ steps.github-token.outputs.token }}
250251
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
251252

252253
- name: Install R package 🚧

.github/workflows/validation.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ jobs:
148148
if: >-
149149
inputs.deps-installation-method == 'setup-r-dependencies'
150150
uses: insightsengineering/setup-r-dependencies@v1
151+
env:
152+
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
151153
with:
152154
lookup-refs: ${{ inputs.lookup-refs }}
153-
github-token: ${{ steps.github-token.outputs.token }}
154155
repository-path: ${{ env.package_subdirectory }}
155156

156157
- name: Build report 🏗

0 commit comments

Comments
 (0)