From efb2ff90e0487d38d3d509961f704aea50cf55e4 Mon Sep 17 00:00:00 2001
From: Ciro Santilli <ciro.santilli@gmail.com>
Date: Fri, 16 Apr 2021 07:00:06 +0000
Subject: [PATCH] v2

---
 .github/workflows/issue.yml | 5 -----
 action.js                   | 4 ++--
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml
index f5253bd..c3cf168 100644
--- a/.github/workflows/issue.yml
+++ b/.github/workflows/issue.yml
@@ -2,11 +2,6 @@ name: Issue
 on:
   issues:
     types: [opened]
-inputs:
-  token:
-    description: 'The GitHub token'
-    required: false
-    default: ${{ github.token }}
 jobs:
   Issue:
     runs-on: ubuntu-20.04
diff --git a/action.js b/action.js
index 2d151ee..df0f14d 100755
--- a/action.js
+++ b/action.js
@@ -56,9 +56,9 @@ for (const image of images) {
 //});
 
 console.log(github.context);
-const token = core.getInput("token");
+//const token = core.getInput("token");
 const pull_request_number = 237;
-const octokit = new github.getOctokit(token);
+const octokit = new github.getOctokit(process.env.GITHUB_TOKEN);
 const new_comment = octokit.issues.createComment({
   owner: 'cirosantilli',
   repo: 'china-dictatorship',
-- 
GitLab