Skip to content

Commit af8413c

Browse files
committed
ci: skip integration tests if CLOUDSCALE_API_TOKEN is missing
Dependabot PRs and PRs from forks do not have access to repository secrets. This change ensures that the integration test job is skipped when the API token is unavailable, preventing unnecessary build failures while still allowing linting and unit tests to run.
1 parent f778376 commit af8413c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ccm-integration-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ jobs:
122122
integration:
123123
name: "Kubernetes ${{ matrix.kubernetes }}"
124124
runs-on: ubuntu-latest
125+
# Skip integration tests if the API token is missing (e.g., Dependabot or forks).
126+
# Admins can manually trigger this job for a specific branch via the 'Actions' tab
127+
# using 'workflow_dispatch' after reviewing the code changes.
128+
if: |
129+
github.event_name == 'workflow_dispatch' ||
130+
secrets.CLOUDSCALE_API_TOKEN != ''
125131
126132
needs:
127133
- lint

0 commit comments

Comments
 (0)