We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35dcfaa commit 1ab57eaCopy full SHA for 1ab57ea
1 file changed
src/index.js
@@ -32,15 +32,15 @@ async function retry(action) {
32
33
function fetchSafely(url, token, options = {}) {
34
return retry(async () => {
35
- log('fetch "%s"', url)
36
- /* c8 ignore next 7 */
+ /* c8 ignore next 8 */
37
if (!token) token = process.env.GITHUB_TOKEN || process.env.GH_TOKEN
38
if (token) {
39
options.headers = {
40
Authorization: `Bearer ${token}`,
41
...options.headers
42
}
43
+ log('fetch "%s"%s', url, token ? ' (authorized)' : '')
44
options = {
45
'User-Agent': 'prantlf/grab-github-release',
46
'X-GitHub-Api-Version': '2022-11-28',
0 commit comments