We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 749bb84 commit 049676bCopy full SHA for 049676b
2 files changed
.github/actions/comment/action.yml
@@ -1,6 +1,10 @@
1
---
2
name: "comment"
3
description: "Comment on a given pull request or issue"
4
+inputs:
5
+ token:
6
+ description: "A token with pull request or issue write permission"
7
+ required: true
8
9
runs:
10
using: "composite"
@@ -9,7 +13,7 @@ runs:
13
uses: actions/github-script@v7
14
if: ${{ github.event.workflow_run.event == 'pull_request' }}
11
15
with:
12
- github-token: ${{ secrets.GITHUB_TOKEN }}
16
+ github-token: ${{ inputs.token }}
17
script: |
18
var fs = require('fs');
19
var issue_number = Number(fs.readFileSync('./results/id'));
.github/workflows/check-files.yml
@@ -73,3 +73,5 @@ jobs:
73
- name: Comment
74
uses: ./.github/actions/comment
75
if: always()
76
+ with:
77
+ token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments