Skip to content

Commit 593371e

Browse files
authored
remove release proposal check for oauth scopes in ci (#5564)
1 parent 9492745 commit 593371e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/release/helpers/requirements.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const os = require('os')
88
const path = require('path')
99
const { capture, fatal, run } = require('./terminal')
1010

11-
const { HOME, LOCALAPPDATA, XDG_CONFIG_HOME, USERPROFILE } = process.env
11+
const { CI, HOME, LOCALAPPDATA, XDG_CONFIG_HOME, USERPROFILE } = process.env
1212

1313
// Check that the `git` CLI is installed.
1414
function checkGit () {
@@ -81,6 +81,8 @@ function checkGitHub () {
8181
}
8282

8383
function checkGitHubScopes (token, requiredScopes, source) {
84+
if (CI) return
85+
8486
const url = 'https://api.github.com'
8587
const headers = [
8688
'Accept: application/vnd.github.v3+json',

0 commit comments

Comments
 (0)