From f0ff0b670af69a3f03ecd00cf6578d6a4b029768 Mon Sep 17 00:00:00 2001 From: cnagadya Date: Tue, 8 Nov 2022 11:16:26 +0000 Subject: [PATCH] Rename config token > external-repo-token --- README.md | 4 ++-- action.yml | 2 +- src/config.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3002ef5..980f32a 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ base-ref: 8bb8a58d6a4028b6c2e314d5caaf273f57644896 head-ref: 69af5638bf660cf218aad5709a4c100e42a2f37b ``` -### remote-config-repo-token +### external-repo-token A token for fetching external configuration files if they live in a private repository. @@ -202,7 +202,7 @@ a private repository. **Possible values**: Any GitHub token with read access to the external repository. -**Example**: `remote-config-repo-token: ghp_123456789abcdef...` +**Example**: `external-repo-token: ghp_123456789abcdef...` ### Configuration File diff --git a/action.yml b/action.yml index 3b79a58..5f1d228 100644 --- a/action.yml +++ b/action.yml @@ -32,7 +32,7 @@ inputs: allow-ghsas: description: Comma-separated list of allowed Github Advisory IDs (e.g. "GHSA-abcd-1234-5679, GHSA-efgh-1234-5679") required: false - remote-config-repo-token: + external-repo-token: description: A token for fetching external configuration file if it lives in another repository. It is required if the repository is private required: false diff --git a/src/config.ts b/src/config.ts index cf41e4b..9924c64 100644 --- a/src/config.ts +++ b/src/config.ts @@ -147,7 +147,7 @@ async function getRemoteConfig(configOpts: { // https://github.com/github/codeql-action/blob/main/init/action.yml#L59 // external-repo-token const {data} = await octokitClient( - 'remote-config-repo-token', + 'external-repo-token', false ).rest.repos.getContent({ mediaType: {