Skip to content

Commit cb23f41

Browse files
fix(ci): use workflow-scoped token for Bioconda publish
The Bioconda publish job fails when pushing the version bump branch to the `nextstrain/bioconda-recipes` fork: ``` refusing to allow a Personal Access Token to create or update workflow `.github/workflows/PR.yml` without `workflow` scope ``` GitHub requires the `workflow` scope on any token that pushes a ref whose tree contains `.github/workflows/` files. The fork inherits these files from upstream `bioconda/bioconda-recipes`, so the scope is required even though our commit only touches `recipes/nextclade/meta.yaml`. Switch from `GH_TOKEN_NEXTSTRAIN_BOT_REPO` to `GH_TOKEN_NEXTSTRAIN_BOT_WORKFLOW`, which carries the `workflow` scope in addition to the same permissions as the previous token. - CI failure: https://github.com/nextstrain/nextclade/actions/runs/24439124069/job/71399868528 - Discussion: https://bedfordlab.slack.com/archives/C01LCTT7JNN/p1776233996707089
1 parent 09fb189 commit cb23f41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/bioconda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
id: bump-version
4545
shell: bash
4646
run: |
47-
export GITHUB_TOKEN="${{ secrets.GH_TOKEN_NEXTSTRAIN_BOT_REPO }}"
47+
export GITHUB_TOKEN="${{ secrets.GH_TOKEN_NEXTSTRAIN_BOT_WORKFLOW }}"
4848
4949
mkdir -p "${HOME}/bin"
5050
export PATH="${HOME}/bin:${PATH}"

0 commit comments

Comments
 (0)