From 048cf6306f215a16734808d629b3a0e9dadf7c9b Mon Sep 17 00:00:00 2001 From: Ryo Mimura Date: Fri, 24 May 2024 13:57:06 +0900 Subject: [PATCH] feat: Add input for specifying token explicitly --- action.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index b843c27..4fcbb12 100644 --- a/action.yaml +++ b/action.yaml @@ -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 " runs: using: "composite" @@ -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 - 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