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:
parent
35c2eeaa5b
commit
9ad0dec224
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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"}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
|
@ -56,6 +56,8 @@ spec:
|
||||
- STEPS
|
||||
type: string
|
||||
secret: true
|
||||
aliases:
|
||||
- name: access_token
|
||||
resourceRef:
|
||||
- name: githubTokenCredentialsId
|
||||
type: secret
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -199,6 +199,8 @@ spec:
|
||||
scope:
|
||||
- PARAMETERS
|
||||
secret: true
|
||||
aliases:
|
||||
- name: access_token
|
||||
resourceRef:
|
||||
- name: githubTokenCredentialsId
|
||||
type: secret
|
||||
|
Loading…
Reference in New Issue
Block a user