Skip to content

Commit

Permalink
feat: Add input for specifying token explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
fchimpan committed May 24, 2024
1 parent 375d135 commit 048cf63
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ inputs:
description: 'if `true`, enclose the output log to the summary in a detail tag.'
required: false
default: "true"
token:
description: 'GitHub token'
required: false
default: ${{ github.token }}
renovate-username:
description: 'Renovate username'
required: false
default: "GitHub Action"
renovate-git-author:
description: 'Renovate git author'
required: false
default: "GitHub Action <[email protected]>"

runs:
using: "composite"
Expand Down Expand Up @@ -57,9 +69,9 @@ runs:
# ref: https://zenn.dev/azrsh/articles/renovate-dry-run-ci#%E5%AE%9F%E8%A3%85-2
# Use the `GitHub Action' user to make it explicit that the execution is through GitHub Actions.
# ref: https://github.com/actions/checkout/issues/13
RENOVATE_USERNAME: GitHub Action
RENOVATE_GIT_AUTHOR: GitHub Action <[email protected]>
RENOVATE_TOKEN: ${{ github.token }}
RENOVATE_USERNAME: ${{ inputs.renovate-username }}
RENOVATE_GIT_AUTHOR: ${{ inputs.renovate-git-author }}
RENOVATE_TOKEN: ${{ inputs.token }}

# Set the log level for Renovate.
# ref: https://docs.renovatebot.com/examples/self-hosting/#about-the-log-level-numbers
Expand Down

0 comments on commit 048cf63

Please sign in to comment.