1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-16 05:16:08 +02:00

add access_token alias to all gh secrets (#2543)

This commit is contained in:
Kevin Stiehl 2021-01-27 12:58:47 +01:00 committed by GitHub
parent 35c2eeaa5b
commit 9ad0dec224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 5 deletions

View File

@ -291,7 +291,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: false,
Aliases: []config.Alias{},
Aliases: []config.Alias{{Name: "access_token"}},
},
{
Name: "autoCreate",

View File

@ -220,7 +220,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}},
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
},
{
Name: "labels",

View File

@ -257,7 +257,7 @@ func githubPublishReleaseMetadata() config.StepData {
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}},
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
},
{
Name: "uploadUrl",

View File

@ -218,7 +218,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
Type: "string",
Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}},
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
},
},
},

View File

@ -379,7 +379,7 @@ func sonarExecuteScanMetadata() config.StepData {
Scope: []string{"PARAMETERS"},
Type: "string",
Mandatory: false,
Aliases: []config.Alias{},
Aliases: []config.Alias{{Name: "access_token"}},
},
{
Name: "disableInlineComments",

View File

@ -56,6 +56,8 @@ spec:
- STEPS
type: string
secret: true
aliases:
- name: access_token
resourceRef:
- name: githubTokenCredentialsId
type: secret

View File

@ -104,6 +104,7 @@ spec:
- name: token
aliases:
- name: githubToken
- name: access_token
description: GitHub personal access token as per https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
scope:
- GENERAL

View File

@ -132,6 +132,7 @@ spec:
- name: token
aliases:
- name: githubToken
- name: access_token
description: "GitHub personal access token as per https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line"
scope:
- GENERAL

View File

@ -105,6 +105,7 @@ spec:
- name: token
aliases:
- name: githubToken
- name: access_token
description: GitHub personal access token as per https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line.
scope:
- GENERAL

View File

@ -199,6 +199,8 @@ spec:
scope:
- PARAMETERS
secret: true
aliases:
- name: access_token
resourceRef:
- name: githubTokenCredentialsId
type: secret