File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,15 +49,16 @@ jobs:
4949 - name : Install Docker and deps (Linux)
5050 run : ./.github/workflows/linux-setup.sh
5151
52- # The magento secrets don't yet work on forked PR, and magento quickstart not done
53- # - name: Load 1password secret(s) magento2 etc
54- # uses: 1password/load-secrets-action@v2
55- # with:
56- # export-env: true
57- # env:
58- # OP_SERVICE_ACCOUNT_TOKEN: "${{ secrets.TESTS_SERVICE_ACCOUNT_TOKEN }}"
59- # MAGENTO2_PUBLIC_ACCESS_KEY: "op://test-secrets/MAGENTO2_ACCESS_KEYS/public_access_key"
60- # MAGENTO2_PRIVATE_ACCESS_KEY: "op://test-secrets/MAGENTO2_ACCESS_KEYS/private_access_key"
52+ # 1password secrets are not available on forked PRs and some other PRs
53+ - name : Load 1password secret(s) magento2 etc if available
54+ if : ${{ secrets.TESTS_SERVICE_ACCOUNT_TOKEN != '' }}
55+ uses : 1password/load-secrets-action@v2
56+ with :
57+ export-env : true
58+ env :
59+ OP_SERVICE_ACCOUNT_TOKEN : " ${{ secrets.TESTS_SERVICE_ACCOUNT_TOKEN }}"
60+ MAGENTO2_PUBLIC_ACCESS_KEY : " op://test-secrets/MAGENTO2_ACCESS_KEYS/public_access_key"
61+ MAGENTO2_PRIVATE_ACCESS_KEY : " op://test-secrets/MAGENTO2_ACCESS_KEYS/private_access_key"
6162
6263 - name : Setup tmate session
6364 if : ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ jobs:
168168 if : ${{ matrix.pull-push-test-platforms }}
169169
170170 - name : Load 1password secret(s) for push-pull-test-platforms
171+ if : ${{ matrix.pull-push-test-platforms && secrets.TESTS_SERVICE_ACCOUNT_TOKEN != '' }}
171172 uses : 1password/load-secrets-action@v2
172173 with :
173174 export-env : true
@@ -181,7 +182,6 @@ jobs:
181182 DDEV_PANTHEON_SSH_KEY : " op://test-secrets/DDEV_PANTHEON_SSH_KEY/private key?ssh-format=openssh"
182183 DDEV_PLATFORM_API_TOKEN : " op://test-secrets/DDEV_PLATFORM_API_TOKEN/credential"
183184 DDEV_UPSUN_API_TOKEN : " op://test-secrets/DDEV_UPSUN_API_TOKEN/credential"
184- if : ${{ matrix.pull-push-test-platforms && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner) }}
185185
186186 - name : Override environment variables for plain nginx-fpm
187187 if : ${{ matrix.webserver == 'nginx-fpm' }}
You can’t perform that action at this time.
0 commit comments