Skip to content

Commit e66e438

Browse files
committed
ansible: Use repo specific PAT when specified in config.
This got lost somewhere during the convergence of s390x and x86/arm64 setups because the former was the only one to run runners for multiple repos. Signed-off-by: Manu Bretelle <[email protected]>
1 parent 4a9d816 commit e66e438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/runner/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
ansible.builtin.copy:
8484
dest: "{{ runner_base_dir }}/actions-runner-{{ item.0.normalized }}-{{ 'worker-%02d.env' | format(item.1) }}"
8585
content: |
86-
ACCESS_TOKEN={{ runner_gh_token_default }}
86+
ACCESS_TOKEN={{ runner_gh_tokens[item.0.name] | default(runner_gh_token_default) }}
8787
RUNNER_WORKDIR={{ runner_workdir }}
8888
LABELS={{ ansible_architecture }},docker-{{ runner_docker_tag }}
8989
EPHEMERAL=true

0 commit comments

Comments
 (0)