From 8f29b7af82ec15c803e71c649fc54dad8eb8b4ba Mon Sep 17 00:00:00 2001 From: IanM <16573496+imorland@users.noreply.github.com> Date: Mon, 22 Jan 2024 17:57:54 +0000 Subject: [PATCH] feat: support composer auth (#3961) --- .github/workflows/REUSABLE_backend.yml | 6 ++++++ .github/workflows/REUSABLE_frontend.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/REUSABLE_backend.yml b/.github/workflows/REUSABLE_backend.yml index 9559d2a6b..092356c6b 100644 --- a/.github/workflows/REUSABLE_backend.yml +++ b/.github/workflows/REUSABLE_backend.yml @@ -52,10 +52,16 @@ on: required: false default: error_reporting=E_ALL + secrets: + composer_auth: + description: The Composer auth tokens to use for private packages. + required: false + env: COMPOSER_ROOT_VERSION: dev-main # `inputs.composer_directory` defaults to `inputs.backend_directory` FLARUM_TEST_TMP_DIR_LOCAL: tests/integration/tmp + COMPOSER_AUTH: ${{ secrets.composer_auth }} jobs: test: diff --git a/.github/workflows/REUSABLE_frontend.yml b/.github/workflows/REUSABLE_frontend.yml index b124b88a0..0b7868dbe 100644 --- a/.github/workflows/REUSABLE_frontend.yml +++ b/.github/workflows/REUSABLE_frontend.yml @@ -90,11 +90,15 @@ on: bundlewatch_github_token: description: The GitHub token to use for Bundlewatch. required: false + composer_auth: + description: The Composer auth tokens to use for private packages. + required: false env: COMPOSER_ROOT_VERSION: dev-main ci_script: ${{ inputs.js_package_manager == 'yarn' && 'yarn install --immutable' || 'npm ci' }} cache_dependency_path: ${{ inputs.cache_dependency_path || format(inputs.js_package_manager == 'yarn' && '{0}/yarn.lock' || '{0}/package-lock.json', inputs.frontend_directory) }} + COMPOSER_AUTH: ${{ secrets.composer_auth }} jobs: build: