From b8052318cfa75c81e97995014b955a55b92e7372 Mon Sep 17 00:00:00 2001 From: Scotte Zinn Date: Fri, 13 Oct 2023 05:40:11 -0400 Subject: [PATCH 1/3] Add checkout token --- action/diff/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action/diff/action.yml b/action/diff/action.yml index f35d7286..3f9b662d 100644 --- a/action/diff/action.yml +++ b/action/diff/action.yml @@ -43,6 +43,10 @@ inputs: sources: description: GitRepository or OCIRepository to include with optional source mappings like `flux-system` or `cluster=./kubernetes/` default: '' + token: + description: Token used for checkout action + default: '${{ github.token }}' + required: false outputs: diff: description: Output of the diff command or empty if there is no diff @@ -63,11 +67,13 @@ runs: uses: actions/checkout@v4 with: path: pr + token: ${{ inputs.token }} - name: Checkout live branch uses: actions/checkout@v4 with: ref: ${{ inputs.live-branch }} path: live + token: ${{ inputs.token }} - name: flux-local diff id: flux_diff run: | From 001d72492255f3900831e9f0aaa3602cf48c619e Mon Sep 17 00:00:00 2001 From: Scotte Zinn Date: Sat, 21 Oct 2023 13:31:26 -0400 Subject: [PATCH 2/3] Add workflow dispatch to run tests --- .github/workflows/flux-local-diff.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/flux-local-diff.yaml b/.github/workflows/flux-local-diff.yaml index a7ddad3c..734f664c 100644 --- a/.github/workflows/flux-local-diff.yaml +++ b/.github/workflows/flux-local-diff.yaml @@ -8,6 +8,7 @@ on: pull_request: branches: - main + workflow_dispatch: jobs: diffs: From ad4d5dfca043fbcf315988f87cc072b012540ce0 Mon Sep 17 00:00:00 2001 From: Scotte Zinn Date: Sat, 21 Oct 2023 13:36:03 -0400 Subject: [PATCH 3/3] Try to run tests --- .github/workflows/flux-local-diff.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/flux-local-diff.yaml b/.github/workflows/flux-local-diff.yaml index 734f664c..81787297 100644 --- a/.github/workflows/flux-local-diff.yaml +++ b/.github/workflows/flux-local-diff.yaml @@ -3,8 +3,6 @@ name: flux-local diff on: push: - branches: - - main pull_request: branches: - main