Skip to content

Commit 5facaef

Browse files
committed
ci: pass secrets to reusable test-packages workflow
1 parent d0fbbcc commit 5facaef

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ jobs:
2323

2424
test:
2525
uses: ./.github/workflows/test-packages.yml
26+
secrets:
27+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/test-packages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ jobs:
386386
name: SonarCloud
387387
needs: [test-llamaindex, test-openai-agents, test-google-adk, test-pydantic-ai, test-agent-framework]
388388
runs-on: ubuntu-latest
389-
if: github.event_name == 'pull_request' && always() && needs.test-llamaindex.result != 'failure' && needs.test-openai-agents.result != 'failure' && needs.test-google-adk.result != 'failure' && needs.test-pydantic-ai.result != 'failure' && needs.test-agent-framework.result != 'failure'
389+
if: always() && needs.test-llamaindex.result != 'failure' && needs.test-openai-agents.result != 'failure' && needs.test-google-adk.result != 'failure' && needs.test-pydantic-ai.result != 'failure' && needs.test-agent-framework.result != 'failure'
390+
permissions:
391+
contents: read
390392
steps:
391393
- name: Checkout
392394
uses: actions/checkout@v4

0 commit comments

Comments
 (0)