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

feat: Add input for specifying token explicitly #25

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
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
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