Skip to content

Commit 8b834ba

Browse files
giordanowsmoses
authored andcommitted
Use different token for registration PR
1 parent 80fbade commit 8b834ba

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.ci/Manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
3838

3939
[[deps.BinaryBuilder]]
4040
deps = ["ArgParse", "BinaryBuilderBase", "Binutils_jll", "Dates", "Downloads", "GitHub", "HTTP", "JLD2", "JSON", "LibGit2", "Libdl", "Logging", "LoggingExtras", "ObjectFile", "OutputCollectors", "Patchelf_jll", "Pkg", "PkgLicenses", "REPL", "Random", "Registrator", "RegistryTools", "SHA", "Scratch", "Sockets", "TOML", "UUIDs", "ghr_jll"]
41-
git-tree-sha1 = "199e2279812c43eada98939d28c00df559d0f38f"
41+
git-tree-sha1 = "e1553dbc9014eaec881e79530a206358ab092c1d"
4242
repo-rev = "mg/debug"
4343
repo-url = "https://github.com/JuliaPackaging/BinaryBuilder.jl.git"
4444
uuid = "12aac903-9f7c-5d81-afc2-d9565ea332ae"

.ci/register_package.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using BinaryBuilder, BinaryBuilder.Wizard, BinaryBuilderBase, Downloads, Pkg
2-
import GitHub: gh_get_json, DEFAULT_API
2+
using GitHub: authenticate, gh_get_json, DEFAULT_API
33

44
# FIXME: Golang auto-upgrades to HTTP2, this can cause issue like https://github.com/google/go-github/issues/2113
55
ENV["GODEBUG"] = "http2client=0"
@@ -128,11 +128,13 @@ gh_auth = Wizard.github_auth(;allow_anonymous=false)
128128
gh_username = "enzymead-bot[bot]"
129129
registry_url = "https://github.com/JuliaRegistries/General"
130130
registry_fork_url = "https://$(gh_username):$(gh_auth.token)@github.com/EnzymeAD/General"
131+
gh_auth_pr = authenticate(ENV["JLBUILD_GITHUB_TOKEN"])
131132
BinaryBuilder.register_jll(name, build_version, dependencies, julia_compat;
132133
augment_platform_block,
133134
lazy_artifacts,
134135
gh_auth,
135136
gh_username,
136137
registry_url,
137138
registry_fork_url,
139+
gh_auth_pr,
138140
)

.github/workflows/build-reactant-reusable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ jobs:
284284
working-directory: ${{ inputs.build_project }}
285285
env:
286286
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
287+
JLBUILD_GITHUB_TOKEN: ${{ secrets.JLBUILD_GITHUB_TOKEN }}
287288
JULIA_DEBUG: BinaryBuilder
288289
- name: Save Julia depot cache on cancel or failure
289290
id: julia-cache-save

0 commit comments

Comments
 (0)