Skip to content

Commit 1318ff2

Browse files
committed
Try to straighten out secret passing
Signed-off-by: Larry Gritz <[email protected]>
1 parent f4ccd3a commit 1318ff2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
ctest_test_timeout: ${{ matrix.ctest_test_timeout }}
7373
coverage: ${{ matrix.coverage || '0' }}
7474
sonar: ${{ matrix.sonar || '0' }}
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7577
strategy:
7678
fail-fast: false
7779
matrix:

.github/workflows/build-steps.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ on:
6464
type: string
6565
nametag:
6666
type: string
67+
GITHUB_TOKEN:
68+
type: string
69+
SONAR_TOKEN:
70+
type: string
6771

6872
permissions: read-all
6973

@@ -150,8 +154,8 @@ jobs:
150154
- name: Sonar-scanner
151155
if: inputs.sonar == 1
152156
env:
153-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
157+
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
158+
SONAR_TOKEN: ${{ inputs.SONAR_TOKEN }}
155159
run: |
156160
which sonar-scanner
157161
ls -l /__w/OpenImageIO/OpenImageIO/bw_output

0 commit comments

Comments
 (0)