Skip to content

Commit 37b9360

Browse files
committed
ci: Only give build-steps the secrets it needs
Signed-off-by: Larry Gritz <[email protected]>
1 parent bff3377 commit 37b9360

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/analysis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ jobs:
5151
# account credentials.
5252
if: github.repository == 'AcademySoftwareFoundation/OpenImageIO'
5353
uses: ./.github/workflows/build-steps.yml
54-
# Must let the called steps workflow inherit our secrets
55-
secrets: inherit
54+
# Must let the called steps workflow inherit necessary secrets
55+
secrets:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5658
with:
5759
nametag: ${{ matrix.nametag || 'unnamed!' }}
5860
runner: ${{ matrix.runner || 'ubuntu-latest' }}

.github/workflows/build-steps.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ on:
6464
type: string
6565
nametag:
6666
type: string
67+
secrets:
68+
GITHUB_TOKEN:
69+
required: true
70+
SONAR_TOKEN:
71+
required: true
6772

6873
permissions: read-all
6974

0 commit comments

Comments
 (0)