Skip to content

Commit d343a37

Browse files
jt55401claude
andcommitted
ci: configure access to private org dependencies
Add GitHub CLI devcontainer feature, git URL rewrite and Composer oauth config in CI workflow for private canonicalization repo access. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba17f99 commit d343a37

4 files changed

Lines changed: 2141 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "HTMLTrust CMS Reference",
33
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
44
"features": {
5+
"ghcr.io/devcontainers/features/github-cli:1": {},
56
"ghcr.io/devcontainers/features/node:1": {
67
"version": "22"
78
},
@@ -17,7 +18,7 @@
1718
"version": "1.23"
1819
}
1920
},
20-
"postCreateCommand": "cd wordpress && composer install --no-interaction 2>/dev/null; echo 'Ready'",
21+
"postCreateCommand": "cd wordpress && composer install --ignore-platform-req=ext-intl --no-interaction 2>/dev/null; echo 'Ready'",
2122
"customizations": {
2223
"vscode": {
2324
"extensions": [

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
extensions: intl, mbstring, mysqli
2020
tools: composer
2121

22+
- name: Configure private dep access
23+
run: |
24+
git config --global url."https://x-access-token:${{ secrets.HTMLTRUST_PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"
25+
composer config --global github-oauth.github.com "${{ secrets.HTMLTRUST_PKG_TOKEN }}"
26+
2227
- name: Install dependencies
2328
working-directory: wordpress
2429
run: composer install --no-interaction --prefer-dist

wordpress/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"repositories": [
1313
{
1414
"type": "vcs",
15-
"url": "https://github.com/HTMLTrust/htmltrust-canonicalization"
15+
"url": "https://github.com/HTMLTrust/htmltrust-canonicalization.git"
1616
}
1717
],
1818
"require": {

0 commit comments

Comments
 (0)