Skip to content

Commit 70da097

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

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ on:
6464
type: string
6565
nametag:
6666
type: string
67+
secrets:
68+
- GITHUB_TOKEN
69+
- SONAR_TOKEN
6770

6871
permissions: read-all
6972

0 commit comments

Comments
 (0)