diff --git a/.github/workflows/add-to-triage.yml b/.github/workflows/add-to-triage.yml index 8c3472f..59eccb4 100644 --- a/.github/workflows/add-to-triage.yml +++ b/.github/workflows/add-to-triage.yml @@ -7,14 +7,14 @@ on: - reopened - transferred - pull_request: + pull_request_target: types: - opened - reopened workflow_call: secrets: - PROJECT_BOT_TOKEN: + project_bot_token: required: true description: Token for the project bot to add issues and pull requests to the project triage board @@ -26,7 +26,7 @@ jobs: - name: Add to triage uses: actions/add-to-project@v1.0.2 with: - github-token: ${{ secrets.PROJECT_BOT_TOKEN }} + github-token: ${{ secrets.project_bot_token }} project-url: https://github.com/orgs/eslint/projects/3 labeled: "triage:no" # Add all issues and pull requests that don't include "triage:no" label. label-operator: NOT diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 54f42fc..07ee6b3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,7 +6,7 @@ on: workflow_call: secrets: - GITHUB_TOKEN: + token: required: true description: GitHub token to use for the workflow @@ -22,7 +22,7 @@ jobs: - name: Mark stale issues and pull requests uses: actions/stale@v9 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.token }} days-before-issue-stale: 30 days-before-pr-stale: 10 days-before-close: 7