Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkout token to support private repos #353

Merged
merged 5 commits into from
Jan 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions action/diff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
Loading