Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/l5-swagger-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ jobs:
- name: Install dependencies
uses: "ramsey/composer-install@v3"
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.PAT }}"} }'
# Every locked package comes from a public repository, so the job token is enough
# to authenticate the downloads. Dependabot runs receive no repository secrets.
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"} }'

- name: Generate OpenAPI docs
run: php artisan l5-swagger:generate
Expand Down Expand Up @@ -99,7 +101,14 @@ jobs:
pages-preview:
name: Publish Swagger UI to GitHub Pages
needs: openapi-generate
if: github.event_name == 'pull_request'
# Only for pull requests that a person opened from a branch of this repository.
# On a Dependabot pull request the permissions below still raise the job token, so
# the preview would publish output generated while unreviewed dependency code ran.
# Bot accounts, Dependabot included, have the type "Bot".
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.user.type == 'User' &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest

permissions:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
- name: Install dependencies
uses: "ramsey/composer-install@v3"
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.PAT }}"} }'
# Every locked package comes from a public repository, so the job token is enough
# to authenticate the downloads. Dependabot runs receive no repository secrets.
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"} }'
- name: 'Run Tests'
run: |
./update_doctrine.sh
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pull_request_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ jobs:
- name: Install dependencies
uses: "ramsey/composer-install@v3"
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.PAT }}"} }'
# Every locked package comes from a public repository, so the job token is enough
# to authenticate the downloads. Dependabot runs receive no repository secrets.
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"} }'
- name: 'Run Tests'
env:
TEST_USER_EMAIL: ${{ secrets.TEST_USER_EMAIL }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
- name: Install dependencies
uses: "ramsey/composer-install@v3"
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.PAT }}"} }'
# Every locked package comes from a public repository, so the job token is enough
# to authenticate the downloads. Dependabot runs receive no repository secrets.
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"} }'
- name: 'Run Tests'
env:
TEST_USER_EMAIL: ${{ secrets.TEST_USER_EMAIL }}
Expand Down
Loading