mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-31 10:47:27 +07:00
Add authorization header to GitHub API call when COMPOSER_TOKEN is set
This commit is contained in:
@ -41,6 +41,10 @@ describe('Utils tests', () => {
|
||||
expect(await utils.fetch('test_url')).toBe(
|
||||
'{ "latest": "8.0", "5.x": "5.6", "url": "test_url" }'
|
||||
);
|
||||
process.env['COMPOSER_TOKEN'] = 'GITHUB_TOKEN';
|
||||
expect(await utils.fetch('test_url')).toBe(
|
||||
'{ "latest": "8.0", "5.x": "5.6", "url": "test_url" }'
|
||||
);
|
||||
});
|
||||
|
||||
it('checking parseVersion', async () => {
|
||||
|
Reference in New Issue
Block a user