Skip to content

ci: the encoder submodule is private again, restore the token - #1926

Open
johan-bell wants to merge 1 commit into
1878-api-cms-hls-media-data-modelfrom
ci-restore-submodule-token
Open

ci: the encoder submodule is private again, restore the token#1926
johan-bell wants to merge 1 commit into
1878-api-cms-hls-media-data-modelfrom
ci-restore-submodule-token

Conversation

@johan-bell

Copy link
Copy Markdown
Collaborator

The encoder repository was made public this afternoon and private again this evening, so the workflows need the credential back — this reverses #1920.

CI will be red until MEDIA_CONVERT_TOKEN exists. A PAT or deploy key with read access to bccsa/luminary-media-convert, added to this repository as that secret. App and CMS checkout fails on the submodule clone until then; this is accepted, not a regression to investigate.

|| github.token is load-bearing rather than defensive: actions/checkout rejects an empty token: outright ("Input required and not supplied"), so pointing at a secret that does not exist would break this repository's own checkout rather than leaving only the private submodule to fail. That was #1919's lesson, learned the hard way.

A fine-grained PAT scoped to that one repository with Contents: Read-only is the narrowest option; a read-only deploy key avoids account-wide reach but needs an SSH setup step instead of token: — say which and I will adjust.

The repository was made public this afternoon and private again this evening, so
the workflows need the credential back. `MEDIA_CONVERT_TOKEN` is a PAT or deploy
key with read access to it, and does not exist yet: until it is created, App and
CMS checkout fails on the submodule clone. That is a known and accepted state
rather than a regression to hunt.

`|| github.token` is not decoration. `actions/checkout` rejects an empty `token:`
outright — "Input required and not supplied" — so pointing at a secret that does
not exist would fail this repository's own checkout instead of leaving only the
private submodule to fail. With the fallback an unset secret degrades to exactly
the previous behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant