diff --git a/.github/scripts/add-labels.js b/.github/scripts/add-labels.js index f4db5ec..13452f4 100644 --- a/.github/scripts/add-labels.js +++ b/.github/scripts/add-labels.js @@ -9,10 +9,8 @@ async function main() { const issueTitle = context.payload.issue.title; const issueNumber = context.payload.issue.number; - const token = core.getInput("GITHUB_TOKEN"); + const token = github.token; console.log("Token: ", token); - const variable = core.getInput("VARIABLE"); - console.log("Variable: ", variable); const octokit = github.getOctokit(token); const labels = issueTitle diff --git a/.github/workflows/issue-label.yml b/.github/workflows/issue-label.yml index 1960b64..3ed6e6e 100644 --- a/.github/workflows/issue-label.yml +++ b/.github/workflows/issue-label.yml @@ -26,6 +26,3 @@ jobs: echo ${{ github.event.issue.title }} echo ${{ github.event.issue.number}} node .github/scripts/add-labels.js - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VARIABLE: "value"