Skip to content

Commit a0b4313

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 a0b4313

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.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 for pull requests from forks (secrets aren't available there).
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 != 'pull_request' ||
130+
github.event.pull_request.head.repo.full_name == github.repository
125131
126132
needs:
127133
- lint

0 commit comments

Comments
 (0)