diff --git a/actions/comment/action.yaml b/actions/comment/action.yaml index 1c8ad87..69da90f 100644 --- a/actions/comment/action.yaml +++ b/actions/comment/action.yaml @@ -1,5 +1,9 @@ name: 'comment' description: 'Action to comment {touchstone} results on the appropriate PR. Needs read/write access.' +inputs: + GITHUB_TOKEN: + description: 'The GITHUB_TOKEN secret.' + required: true runs: using: "composite" steps: @@ -28,7 +32,7 @@ runs: - name: 'Comment on PR' uses: actions/github-script@v3 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ inputs.GITHUB_TOKEN }} script: | var fs = require('fs'); var issue_number = Number(fs.readFileSync('./NR')); diff --git a/inst/touchstone-comment.yaml b/inst/touchstone-comment.yaml index 4d33e8a..00096bd 100644 --- a/inst/touchstone-comment.yaml +++ b/inst/touchstone-comment.yaml @@ -18,3 +18,5 @@ jobs: github.event.workflow_run.conclusion == 'success' }} steps: - uses: lorenzwalthert/touchstone/actions/comment@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}