Add support for token "NOT_NEEDED" for standalone plugins (#83)
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
computed.avatar = await avatar || "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
|
||||
|
||||
//Token scopes
|
||||
computed.token.scopes = (await rest.request("HEAD /")).headers["x-oauth-scopes"].split(", ")
|
||||
computed.token.scopes = conf.settings.notoken ? [] : (await rest.request("HEAD /")).headers["x-oauth-scopes"].split(", ")
|
||||
|
||||
//Meta
|
||||
data.meta = {version:conf.package.version, author:conf.package.author}
|
||||
|
||||
@@ -9,6 +9,8 @@ inputs:
|
||||
# User account personal token
|
||||
# No additional scopes are needed unless you want to include private repositories metrics
|
||||
# Some plugins may also require additional scopes
|
||||
# ────────────────────────────────────────────────────────────────
|
||||
# If you're only using plugins which don't really require a GitHub token, you may pass "NOT_NEEDED" as value
|
||||
token:
|
||||
description: GitHub Personal Token
|
||||
type: token
|
||||
|
||||
Reference in New Issue
Block a user