Skip to content

Commit 3365da6

Browse files
fix(ci): skip docker scan on fork instead of rust check (#36)
1 parent 39467a8 commit 3365da6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/docker-image-scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ on:
1010
tags:
1111
- '*'
1212

13+
env:
14+
HAS_ACCESS_TO_GITHUB_TOKEN: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
15+
1316
jobs:
1417
test-scan-docker-image:
18+
if: ${{ env.HAS_ACCESS_TO_GITHUB_TOKEN == 'true' }}
1519
name: Test Scan Docker Image
1620
runs-on: ubuntu-22.04
1721
env:

.github/workflows/rustcheck.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ on:
1111
- '*'
1212
workflow_dispatch: {}
1313

14-
env:
15-
HAS_ACCESS_TO_GITHUB_TOKEN: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
16-
1714
jobs:
1815
test-rust-checks:
19-
if: ${{ env.HAS_ACCESS_TO_GITHUB_TOKEN == 'true' }}
2016
env:
2117
RUST_TEST_REPOSITORY: "Kong/atc-router"
2218
outputs:

0 commit comments

Comments
 (0)