diff --git a/.github/workflows/azure-snp-reporter.yml b/.github/workflows/azure-snp-reporter.yml index 7a441df46..01171067b 100644 --- a/.github/workflows/azure-snp-reporter.yml +++ b/.github/workflows/azure-snp-reporter.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Set up Go uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -37,7 +37,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Fetch SNP report uses: ./.github/actions/azure_snp_reporter @@ -60,7 +60,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Set up Go uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 2e9f5b8e1..97600d090 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -40,7 +40,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -56,7 +56,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -81,7 +81,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -105,7 +105,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -120,7 +120,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -145,7 +145,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-constellation-node-operator.yml b/.github/workflows/build-constellation-node-operator.yml index 50042f9b4..bc2177ad8 100644 --- a/.github/workflows/build-constellation-node-operator.yml +++ b/.github/workflows/build-constellation-node-operator.yml @@ -20,7 +20,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-gcp-guest-agent.yml b/.github/workflows/build-gcp-guest-agent.yml index 825540b97..61dc7acaf 100644 --- a/.github/workflows/build-gcp-guest-agent.yml +++ b/.github/workflows/build-gcp-guest-agent.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: path: "constellation" - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Docker meta id: meta diff --git a/.github/workflows/build-joinservice-image.yml b/.github/workflows/build-joinservice-image.yml index ad768dd06..fedd839c8 100644 --- a/.github/workflows/build-joinservice-image.yml +++ b/.github/workflows/build-joinservice-image.yml @@ -21,7 +21,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-kms-image.yml b/.github/workflows/build-kms-image.yml index 0be4e5ea9..fd3a09acc 100644 --- a/.github/workflows/build-kms-image.yml +++ b/.github/workflows/build-kms-image.yml @@ -21,7 +21,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-logcollector-images.yml b/.github/workflows/build-logcollector-images.yml index 3bd3a7323..45b898394 100644 --- a/.github/workflows/build-logcollector-images.yml +++ b/.github/workflows/build-logcollector-images.yml @@ -22,7 +22,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Build and upload logstash container image uses: ./.github/actions/build_micro_service diff --git a/.github/workflows/build-micro-service-manual.yml b/.github/workflows/build-micro-service-manual.yml index 046e0ba3c..31457413d 100644 --- a/.github/workflows/build-micro-service-manual.yml +++ b/.github/workflows/build-micro-service-manual.yml @@ -35,7 +35,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-operator-manual.yml b/.github/workflows/build-operator-manual.yml index 392e84e3a..db0f7f681 100644 --- a/.github/workflows/build-operator-manual.yml +++ b/.github/workflows/build-operator-manual.yml @@ -18,7 +18,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-os-image.yml b/.github/workflows/build-os-image.yml index fbadaf7a3..29c8c78e2 100644 --- a/.github/workflows/build-os-image.yml +++ b/.github/workflows/build-os-image.yml @@ -35,7 +35,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Build bootstrapper if: inputs.stream != 'debug' @@ -87,7 +87,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Determine version id: version @@ -201,7 +201,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Download build dependencies uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.0.1 @@ -311,7 +311,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Download OS image artifact uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.0.1 @@ -498,7 +498,7 @@ jobs: - name: Checkout repository uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Login to AWS uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # tag=v1.7.0 @@ -720,7 +720,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-qemu-metadata-image.yml b/.github/workflows/build-qemu-metadata-image.yml index c855c0869..438bd3fef 100644 --- a/.github/workflows/build-qemu-metadata-image.yml +++ b/.github/workflows/build-qemu-metadata-image.yml @@ -21,7 +21,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/build-verification-service.yml b/.github/workflows/build-verification-service.yml index 00e521074..6c961a71f 100644 --- a/.github/workflows/build-verification-service.yml +++ b/.github/workflows/build-verification-service.yml @@ -21,7 +21,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 430fa7d35..5e6a2b770 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -20,7 +20,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index d31aecbfc..373a66b9d 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -20,7 +20,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Link Checker uses: lycheeverse/lychee-action@4dcb8bee2a0a4531cba1a1f392c54e8375d6dd81 # v1.5.4 diff --git a/.github/workflows/docs-update-reference.yml b/.github/workflows/docs-update-reference.yml index d921b6b1d..cdde46aaa 100644 --- a/.github/workflows/docs-update-reference.yml +++ b/.github/workflows/docs-update-reference.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: pull-request uses: repo-sync/pull-request@65785d95a5a466e46a9d0708933a3bd51bbf9dde # tag=v2.6.2 diff --git a/.github/workflows/docs-vale.yml b/.github/workflows/docs-vale.yml index 3b27badfc..37f6886fd 100644 --- a/.github/workflows/docs-vale.yml +++ b/.github/workflows/docs-vale.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Vale uses: errata-ai/vale-action@753427452ff1d6cf7a7b76a552aa0cbee3971551 # tag=v1.5.0 diff --git a/.github/workflows/e2e-test-daily.yml b/.github/workflows/e2e-test-daily.yml index d2054fc96..9d91f9be5 100644 --- a/.github/workflows/e2e-test-daily.yml +++ b/.github/workflows/e2e-test-daily.yml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Find latest image id: find-latest-image @@ -48,7 +48,7 @@ jobs: uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: fetch-depth: 0 - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/e2e-test-manual-macos.yml b/.github/workflows/e2e-test-manual-macos.yml index 755000737..25d0db6f0 100644 --- a/.github/workflows/e2e-test-manual-macos.yml +++ b/.github/workflows/e2e-test-manual-macos.yml @@ -77,7 +77,7 @@ jobs: if: ${{ github.event.steps.check-bootstrapper-cache.cache-hit != 'true'}} uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Build bootstrapper if: ${{ github.event.steps.check-bootstrapper-cache.cache-hit != 'true'}} @@ -114,7 +114,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Find latest image id: find-latest-image @@ -140,7 +140,7 @@ jobs: - name: Check out repository uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/e2e-test-manual.yml b/.github/workflows/e2e-test-manual.yml index a674fd9b9..f2d9c3bdf 100644 --- a/.github/workflows/e2e-test-manual.yml +++ b/.github/workflows/e2e-test-manual.yml @@ -86,7 +86,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Find latest image id: find-latest-image @@ -106,7 +106,7 @@ jobs: - name: Check out repository uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/e2e-test-weekly.yml b/.github/workflows/e2e-test-weekly.yml index 59facdc9d..035ef4cd5 100644 --- a/.github/workflows/e2e-test-weekly.yml +++ b/.github/workflows/e2e-test-weekly.yml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Find latest image id: find-latest-image @@ -71,7 +71,7 @@ jobs: uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: fetch-depth: 0 - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/generate-measurements.yml b/.github/workflows/generate-measurements.yml index 2d0169d11..5b182a52e 100644 --- a/.github/workflows/generate-measurements.yml +++ b/.github/workflows/generate-measurements.yml @@ -40,7 +40,7 @@ jobs: - name: Check out repository uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Extract ref, stream and version id: extract @@ -195,7 +195,7 @@ jobs: - name: Check out repository uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 8fa869eb1..a77b080c9 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -23,7 +23,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 012c715fa..f6703f7f6 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -16,7 +16,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 with: @@ -85,7 +85,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Login to Azure uses: ./.github/actions/login_azure with: @@ -112,7 +112,7 @@ jobs: id: checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Download syft & grype run: | SYFT_VERSION=0.62.1 diff --git a/.github/workflows/test-actionlint.yml b/.github/workflows/test-actionlint.yml index 473ec0103..9af788a53 100644 --- a/.github/workflows/test-actionlint.yml +++ b/.github/workflows/test-actionlint.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/test-go-generate.yml b/.github/workflows/test-go-generate.yml index 5c7509fdf..4e4dbf527 100644 --- a/.github/workflows/test-go-generate.yml +++ b/.github/workflows/test-go-generate.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: path: constellation - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} token: ${{ secrets.TIDY_RENOVATE_PUSH }} - name: Setup Go diff --git a/.github/workflows/test-govulncheck.yml b/.github/workflows/test-govulncheck.yml index 13a8525bd..b10c3242a 100644 --- a/.github/workflows/test-govulncheck.yml +++ b/.github/workflows/test-govulncheck.yml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Install Dependencies run: sudo apt-get update && sudo apt-get -y install libcryptsetup-dev libvirt-dev diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index ceda4e2ea..c8cb6299a 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -25,7 +25,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/test-lint.yml b/.github/workflows/test-lint.yml index 7a05583a4..b5e1e0424 100644 --- a/.github/workflows/test-lint.yml +++ b/.github/workflows/test-lint.yml @@ -29,7 +29,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Install Dependencies run: sudo apt-get update && sudo apt-get -y install libcryptsetup-dev libvirt-dev diff --git a/.github/workflows/test-operator-codegen.yml b/.github/workflows/test-operator-codegen.yml index fe6cb7f7b..d867f478f 100644 --- a/.github/workflows/test-operator-codegen.yml +++ b/.github/workflows/test-operator-codegen.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/test-shellcheck.yml b/.github/workflows/test-shellcheck.yml index 2b62ba09b..7a632f5d9 100644 --- a/.github/workflows/test-shellcheck.yml +++ b/.github/workflows/test-shellcheck.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/test-shellfmt.yml b/.github/workflows/test-shellfmt.yml index 502e76d98..b1b931e40 100644 --- a/.github/workflows/test-shellfmt.yml +++ b/.github/workflows/test-shellfmt.yml @@ -21,7 +21,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/test-tf.yml b/.github/workflows/test-tf.yml index d8d27542d..ac2f063a2 100644 --- a/.github/workflows/test-tf.yml +++ b/.github/workflows/test-tf.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Terraform uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # tag=v2.0.3 diff --git a/.github/workflows/test-tfsec.yml b/.github/workflows/test-tfsec.yml index 8fee1db0b..987b1ec47 100644 --- a/.github/workflows/test-tfsec.yml +++ b/.github/workflows/test-tfsec.yml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: tfsec uses: aquasecurity/tfsec-pr-commenter-action@7a44c5dcde5dfab737363e391800629e27b6376b diff --git a/.github/workflows/test-tidy.yml b/.github/workflows/test-tidy.yml index fd648198e..63bb7ef36 100644 --- a/.github/workflows/test-tidy.yml +++ b/.github/workflows/test-tidy.yml @@ -24,7 +24,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} token: ${{ secrets.TIDY_RENOVATE_PUSH }} - name: Setup Go environment diff --git a/.github/workflows/test-unittest.yml b/.github/workflows/test-unittest.yml index 90969cd69..6ad88a976 100644 --- a/.github/workflows/test-unittest.yml +++ b/.github/workflows/test-unittest.yml @@ -25,7 +25,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 @@ -53,7 +53,7 @@ jobs: - name: Checkout uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 diff --git a/.github/workflows/update-cli-reference.yml b/.github/workflows/update-cli-reference.yml index 6832863b8..08935c60a 100644 --- a/.github/workflows/update-cli-reference.yml +++ b/.github/workflows/update-cli-reference.yml @@ -17,7 +17,7 @@ jobs: - name: Checkout Constellation uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 with: - ref: ${{ github.head_ref }} + ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Setup Go environment uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0