Skip to content

Commit 8384851

Browse files
authored
Fix github authentication
1 parent ab5e6ac commit 8384851

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/test-module.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
name: Install LocalGov Drupal
2323
runs-on: ubuntu-latest
24+
25+
env:
26+
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2427

2528
strategy:
2629
fail-fast: false
@@ -92,16 +95,11 @@ jobs:
9295
repository: localgovdrupal/drupal-container
9396
ref: php${{ matrix.php-version }}
9497

95-
- name: Authenticate with Github
96-
run: |
97-
9898
- name: Create LocalGov Drupal project
9999
run: |
100100
composer create-project --stability dev --no-install localgovdrupal/localgov-project ./html "${{ matrix.localgov-version }}"
101101
composer --working-dir=./html require --no-install localgovdrupal/localgov:${{ matrix.localgov-version }}-dev
102102
composer --working-dir=./html require --no-install drupal/core-recommended:${{ matrix.drupal-version }} drupal/core-composer-scaffold:${{ matrix.drupal-version }} drupal/core-project-message:${{ matrix.drupal-version }} drupal/core-dev:${{ matrix.drupal-version }}
103-
composer --working-dir=html config repositories.1 vcs [email protected]:${{inputs.project}}.git
104-
composer global config github-oauth.github.com ${{ github.token }}
105103
composer --working-dir=./html install
106104
107105
- name: Obtain the test target using Composer

0 commit comments

Comments
 (0)