diff --git a/.github/workflows/flux-local-diff.yaml b/.github/workflows/flux-local-diff.yaml index e89cab68..c338d808 100644 --- a/.github/workflows/flux-local-diff.yaml +++ b/.github/workflows/flux-local-diff.yaml @@ -3,11 +3,10 @@ name: flux-local diff on: push: - branches: - - main pull_request: branches: - main + workflow_dispatch: jobs: diffs: diff --git a/action/diff/action.yml b/action/diff/action.yml index 141072b8..fb8b665e 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 @@ -77,11 +81,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: Diff Resources id: flux_diff run: |