Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix access to the GITHUB_TOKEN #174

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

Bellangelo
Copy link
Contributor

@Bellangelo Bellangelo commented Jan 10, 2025

Closes #169

The main issue was that while this test was trying to use the GITHUB_TOKEN environment variable, the variable was scoped to be used in a specific command only. I moved the env to the top so it can be accessed by all the commands in the step.

Furthermore, this line - run: composer config --global github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} is removed because this is handled by the setup-php action. For references please check https://github.com/shivammathur/setup-php/blob/main/src/scripts/tools/add_tools.sh#L64 and https://github.com/shivammathur/setup-php?tab=readme-ov-file#wrench-tools-support

@asgrim asgrim self-assigned this Jan 14, 2025
@asgrim asgrim added the bug Something isn't working label Jan 14, 2025
@asgrim asgrim added this to the 0.6.0 milestone Jan 14, 2025
@asgrim
Copy link
Collaborator

asgrim commented Jan 14, 2025

Thanks @Bellangelo !

@asgrim asgrim merged commit 286930c into php:main Jan 14, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass the GH token to tests
2 participants