Skip to content

Commit fda4cc8

Browse files
committed
skip ssh on dependabot PRs
1 parent 54c172b commit fda4cc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr_checks.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ jobs:
275275
cd core
276276
npm test
277277
env:
278-
IGNORE_API_KEY_TESTS: ${{ github.event.pull_request.head.repo.fork }}
278+
IGNORE_API_KEY_TESTS: ${{ github.event.pull_request.head.repo.fork == true && github.actor == 'dependabot[bot]' }}
279279
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
280280
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
281281
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
@@ -436,7 +436,7 @@ jobs:
436436
chmod 600 ~/.ssh/id_rsa
437437
ssh-keyscan -H "$SSH_HOST" >> ~/.ssh/known_hosts
438438
echo -e "Host ssh-test-container\n\tHostName $SSH_HOST\n\tUser ec2-user\n\tIdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
439-
if: ${{ github.event.pull_request.head.repo.fork == false }}
439+
if: ${{ github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' }}
440440

441441
- name: Set up Xvfb
442442
run: |
@@ -446,7 +446,7 @@ jobs:
446446
- name: Run e2e tests
447447
run: |
448448
cd extensions/vscode
449-
IGNORE_SSH_TESTS="${{ github.event.pull_request.head.repo.fork }}" TEST_FILE="${{ matrix.test_file }}" npm run ${{ matrix.command }}
449+
IGNORE_SSH_TESTS="${{ github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' }}" TEST_FILE="${{ matrix.test_file }}" npm run ${{ matrix.command }}
450450
env:
451451
DISPLAY: :99
452452

0 commit comments

Comments
 (0)