Skip to content

Commit

Permalink
feat(action): allow to use a custom token for cloning the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Jan 13, 2024
1 parent e76c0fe commit 7731153
Showing 1 changed file with 6 additions and 0 deletions.
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: GitHub token to use for cloning the repository
required: false
default: ''
outputs:
diff:
description: Output of the diff command or empty if there is no diff
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 7731153

Please sign in to comment.