diff --git a/.github/actions/e2e/setup-cluster/action.yaml b/.github/actions/e2e/setup-cluster/action.yaml index c829662294f0..033dff5d5ea2 100644 --- a/.github/actions/e2e/setup-cluster/action.yaml +++ b/.github/actions/e2e/setup-cluster/action.yaml @@ -269,3 +269,4 @@ runs: k8s_version: ${{ inputs.k8s_version }} git_ref: ${{ inputs.git_ref }} private_cluster: ${{ inputs.private_cluster }} + \ No newline at end of file diff --git a/.github/workflows/ci-test.yaml b/.github/workflows/ci-test.yaml index df0abe19fc9c..58cfdb9b204b 100644 --- a/.github/workflows/ci-test.yaml +++ b/.github/workflows/ci-test.yaml @@ -9,6 +9,7 @@ on: jobs: ci-test: runs-on: ubuntu-latest + if: github.repository == 'aws/karpenter-provider-aws' strategy: matrix: k8sVersion: ["1.23.x", "1.24.x", "1.25.x", "1.26.x", "1.27.x", "1.28.x", "1.29.x"] diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ecbf54472e9d..55fcdb828096 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,6 +9,7 @@ on: jobs: ci: runs-on: ubuntu-latest + if: github.repository == 'aws/karpenter-provider-aws' steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - uses: ./.github/actions/install-deps diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index 4b9af981c167..c78fc63f866d 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -10,6 +10,7 @@ on: jobs: analyze-go: name: Analyze Go + if: github.repository == 'aws/karpenter-provider-aws' runs-on: ubuntu-latest permissions: actions: read # github/codeql-action/init@v2 @@ -27,6 +28,7 @@ jobs: # https://github.blog/2023-08-09-four-tips-to-keep-your-github-actions-workflows-secure/#2-enable-code-scanning-for-workflows analyze-github-actions: name: Analyze Github Actions + if: github.repository == 'aws/karpenter-provider-aws' runs-on: ubuntu-latest permissions: actions: read # github/codeql-action/init@v2 diff --git a/.github/workflows/e2e-private-cluster-trigger.yaml b/.github/workflows/e2e-private-cluster-trigger.yaml index 84cc71e03fa6..970539aad33b 100644 --- a/.github/workflows/e2e-private-cluster-trigger.yaml +++ b/.github/workflows/e2e-private-cluster-trigger.yaml @@ -4,6 +4,7 @@ on: - cron: '7 0 * * 4' jobs: private-cluster-trigger: + if: github.repository == 'aws/karpenter-provider-aws' permissions: id-token: write # aws-actions/configure-aws-credentials@v4.0.1 statuses: write # ./.github/actions/commit-status/start