Skip to content

Commit 3e579e5

Browse files
authored
Skip action on forked branches (#1515)
* dont run action on fork
1 parent 95bc492 commit 3e579e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ jobs:
697697
steps:
698698
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
699699
- name: Get Secrets from Azure Key Vault
700+
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }}
700701
uses: ./.github/actions/az-sync
701702
with:
702703
az_client_id: ${{ secrets.AZ_KEYVAULT_CLIENT_ID }}
@@ -770,6 +771,7 @@ jobs:
770771
run: echo "GO_VERSION=$(cat go.mod | grep toolchain | sed 's/toolchain //; s/go//')" >> $GITHUB_ENV
771772

772773
- name: Get Secrets from Azure Key Vault
774+
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }}
773775
uses: ./.github/actions/az-sync
774776
with:
775777
az_client_id: ${{ secrets.AZ_KEYVAULT_CLIENT_ID }}

0 commit comments

Comments
 (0)