Skip to content

Commit f196820

Browse files
committed
Fix collision: github_token and GITHUB_TOKEN are the same name
1 parent 5c07d35 commit f196820

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/action-security-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name: action-security-template
1212
default: ".github/workflows/"
1313
type: string
1414
secrets:
15-
github_token:
15+
gh_token:
1616
description: "GitHub Token"
1717
required: true
1818
defaults:
@@ -33,5 +33,5 @@ jobs:
3333
- name: Run zizmor
3434
uses: zizmorcore/zizmor-action@873539476a7f9b0da7504d0d9e9a6a5275094d98
3535
with:
36-
token: ${{ secrets.github_token }}
36+
token: ${{ secrets.gh_token }}
3737
inputs: ${{ inputs.working-directory }}

.github/workflows/action-security-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
action-security-test:
2121
uses: fabriciofx/github-workflows/.github/workflows/action-security-template.yml@main
2222
secrets:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
gh_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/action-update-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: action-update-template
66
'on':
77
workflow_call:
88
secrets:
9-
github_token:
9+
gh_token:
1010
description: "GitHub token"
1111
required: true
1212
defaults:
@@ -29,4 +29,4 @@ jobs:
2929
- name: Run Renovate
3030
uses: renovatebot/github-action@ed4d0bb582ff6e994d0252a7715bd5b80f25d106
3131
with:
32-
token: ${{ secrets.github_token }}
32+
token: ${{ secrets.gh_token }}

.github/workflows/action-update-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
action-update:
1717
uses: fabriciofx/github-workflows/.github/workflows/action-update-template.yml@main
1818
secrets:
19-
token: ${{ secrets.GITHUB_TOKEN }}
19+
gh_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/any-sonar-template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ name: any-sonar-template
2525
required: true
2626
type: string
2727
secrets:
28-
github_token:
28+
gh_token:
2929
description: "GitHub Token"
3030
required: true
31-
sonar_token:
31+
sr_token:
3232
description: "Sonar Token"
3333
required: true
3434
defaults:
@@ -107,8 +107,8 @@ jobs:
107107
- name: Run Sonar
108108
working-directory: ${{ inputs.working-directory }}
109109
env:
110-
GITHUB_TOKEN: ${{ secrets.github_token }}
111-
SONAR_TOKEN: ${{ secrets.sonar_token }}
110+
GITHUB_TOKEN: ${{ secrets.gh_token }}
111+
SONAR_TOKEN: ${{ secrets.sr_token }}
112112
run: |
113113
[[ -x "mvnw" ]] && mvn="./mvnw" || mvn="mvn"
114114
args=(--errors --batch-mode package)

.github/workflows/any-sonar-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
working-directory: "."
1818
secrets:
19-
github_token: ${{ secrets.GITHUB_TOKEN }}
20-
sonar_token: ${{ secrets.SONAR_TOKEN }}
19+
gh_token: ${{ secrets.GITHUB_TOKEN }}
20+
sr_token: ${{ secrets.SONAR_TOKEN }}
2121
sonar_organization: "fabriciofx"
2222
sonar_project_key: "fabriciofx_github-workflows"

0 commit comments

Comments
 (0)