From 452f8e50771f1b4d7fec3c250ff6770e89b31052 Mon Sep 17 00:00:00 2001 From: Roeland Reyniers Date: Wed, 9 Oct 2024 13:27:21 -0600 Subject: [PATCH] Test action --- action.yml | 6 +++++- index.js | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 307959a..371855c 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,11 @@ inputs: checklist_path: description: 'Path of checklist location relative to the context of files available in the runner' default: "./.github/checklist.md" - required: false + required: true + repo_token: + description: "A GitHub token for API access. Defaults to {{ github.token }}." + default: "${{ github.token }}" + required: true runs: using: 'node20' main: 'index.js' \ No newline at end of file diff --git a/index.js b/index.js index f573f3a..b67a8ba 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,8 @@ const fs = require("fs/promises"); const github = require('@actions/github'); const checklistPath = core.getInput('checklist_path'); +const repoToken = core.getInput('repo_token'); +const octokit = github.getOctokit(repoToken); (async () => { try {