Skip to content

Commit

Permalink
Pass secrets from deploy workflow to test workflow (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
dancoates authored Oct 28, 2024
1 parent 584c150 commit 4305682
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ permissions:
jobs:
unittests:
uses: './.github/workflows/test.yaml'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

deploy:
name: Deploy
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Test
on:
push:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
SONAR_TOKEN:
required: true
SONAR_HOST_URL:
required: true

jobs:
unittests:
Expand Down

0 comments on commit 4305682

Please sign in to comment.