ci: clone fai/module-sdk anonymously, not with cross-org token
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Initial CI run on commit cc72db04 failed in 2 seconds because
the workflow used the repo-scoped GITHUB_TOKEN to clone the
sibling fai/module-sdk repository. That token is scoped to the
current repo (fai-modules/text-extract) and could not read a
private repo in a different org (fai/), so git fetch returned
401 and aborted the run.
fai/module-sdk has been made public — the SDK is the
authoring-surface for module developers and contains nothing
that needs to stay private. With the SDK public, an anonymous
clone is sufficient and avoids the cross-org token-scope
friction entirely.
The text-extract repo itself stays private; only the
authoring-surface SDK is public.
Bumps the module patch version 0.1.0 -> 0.1.1 per the
per-commit policy.
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
cc72db0421
commit
c4119169af
3 changed files with 9 additions and 5 deletions
|
|
@ -44,8 +44,12 @@ jobs:
|
||||||
mkdir -p "$sdk_dir"
|
mkdir -p "$sdk_dir"
|
||||||
cd "$sdk_dir"
|
cd "$sdk_dir"
|
||||||
git init -q
|
git init -q
|
||||||
|
# The SDK lives in a different Forgejo org (fai/) and the
|
||||||
|
# repo-scoped GITHUB_TOKEN cannot read it. The SDK is
|
||||||
|
# public, so an anonymous clone is sufficient and avoids
|
||||||
|
# cross-org token-scope friction.
|
||||||
git remote add origin \
|
git remote add origin \
|
||||||
"https://x-access-token:${GITHUB_TOKEN}@git.flemming.ws/fai/module-sdk.git"
|
"https://git.flemming.ws/fai/module-sdk.git"
|
||||||
git fetch --depth=1 origin main
|
git fetch --depth=1 origin main
|
||||||
git checkout -q FETCH_HEAD
|
git checkout -q FETCH_HEAD
|
||||||
echo "module-sdk checked out at: $sdk_dir"
|
echo "module-sdk checked out at: $sdk_dir"
|
||||||
|
|
|
||||||
6
Cargo.lock
generated
6
Cargo.lock
generated
|
|
@ -169,7 +169,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fai-module-sdk"
|
name = "fai-module-sdk"
|
||||||
version = "0.1.0"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fai-module-sdk-macros",
|
"fai-module-sdk-macros",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
@ -180,7 +180,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fai-module-sdk-macros"
|
name = "fai-module-sdk-macros"
|
||||||
version = "0.1.0"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|
@ -504,7 +504,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "text_extract"
|
name = "text_extract"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fai-module-sdk",
|
"fai-module-sdk",
|
||||||
"pdf-extract",
|
"pdf-extract",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "text_extract"
|
name = "text_extract"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Dr. Stefan Flemming <platform@flemming.ai>"]
|
authors = ["Dr. Stefan Flemming <platform@flemming.ai>"]
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue