diff --git a/.github/allowed-actions.js b/.github/allowed-actions.js index 89322236ebb2..8a4bc9746d91 100644 --- a/.github/allowed-actions.js +++ b/.github/allowed-actions.js @@ -6,7 +6,7 @@ module.exports = [ "actions/cache@0781355a23dac32fd3bac414512f4b903437991a", // v2.1.3 "actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f", // v2.3.4 - "actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9", // v3.0.0 + "actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d", // v4.0.2 "actions/labeler@5f867a63be70efff62b767459b009290364495eb", // v2.2.0 "actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e", // v2.1.4 "actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6", // v2.2.2 diff --git a/.github/workflows/check-for-spammy-issues.yml b/.github/workflows/check-for-spammy-issues.yml index 573eecb0ed1f..42f38895c35c 100644 --- a/.github/workflows/check-for-spammy-issues.yml +++ b/.github/workflows/check-for-spammy-issues.yml @@ -13,7 +13,7 @@ jobs: if: github.repository == 'github/docs' runs-on: ubuntu-latest steps: - - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }} script: | diff --git a/.github/workflows/confirm-internal-staff-work-in-docs.yml b/.github/workflows/confirm-internal-staff-work-in-docs.yml index 17ddc2908ee3..e07b5348fec7 100644 --- a/.github/workflows/confirm-internal-staff-work-in-docs.yml +++ b/.github/workflows/confirm-internal-staff-work-in-docs.yml @@ -20,7 +20,7 @@ jobs: if: github.repository == 'github/docs' && github.actor != 'docs-bot' steps: - id: membership_check - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d env: TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }} with: diff --git a/.github/workflows/copy-api-issue-to-internal.yml b/.github/workflows/copy-api-issue-to-internal.yml index db8d822cb5ad..a41093bc98d2 100644 --- a/.github/workflows/copy-api-issue-to-internal.yml +++ b/.github/workflows/copy-api-issue-to-internal.yml @@ -16,7 +16,7 @@ jobs: if: github.event.label.name == 'rest-description' && github.repository == 'github/docs' steps: - name: Check if this run was triggered by a member of the docs team - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d id: triggered-by-member with: github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}} diff --git a/.github/workflows/first-responder-docs-content.yml b/.github/workflows/first-responder-docs-content.yml index c46b365eb753..69d92fa587b6 100644 --- a/.github/workflows/first-responder-docs-content.yml +++ b/.github/workflows/first-responder-docs-content.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Check if the event originated from a team member - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d id: set-result with: github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}} @@ -68,7 +68,7 @@ jobs: steps: - name: Remove card from project - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}} result-encoding: string diff --git a/.github/workflows/merged-notification.yml b/.github/workflows/merged-notification.yml index 9812c6d39143..eaf62731c8fa 100644 --- a/.github/workflows/merged-notification.yml +++ b/.github/workflows/merged-notification.yml @@ -14,7 +14,7 @@ jobs: if: github.repository == 'github/docs' && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch runs-on: ubuntu-latest steps: - - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: script: | github.issues.createComment({ diff --git a/.github/workflows/move-existing-issues-to-the-correct-repo.yml b/.github/workflows/move-existing-issues-to-the-correct-repo.yml index 8194013d76aa..a15561d87e9f 100644 --- a/.github/workflows/move-existing-issues-to-the-correct-repo.yml +++ b/.github/workflows/move-existing-issues-to-the-correct-repo.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - id: move_to_correct_repo - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d env: TEAM_ENGINEERING_REPO: ${{ secrets.TEAM_ENGINEERING_REPO }} TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }} diff --git a/.github/workflows/move-new-issues-to-correct-docs-repo.yml b/.github/workflows/move-new-issues-to-correct-docs-repo.yml index 77935392387b..f215fe25a112 100644 --- a/.github/workflows/move-new-issues-to-correct-docs-repo.yml +++ b/.github/workflows/move-new-issues-to-correct-docs-repo.yml @@ -18,7 +18,7 @@ jobs: if: github.repository == 'github/docs-internal' steps: - id: move_to_correct_repo - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d env: TEAM_ENGINEERING_REPO: ${{ secrets.TEAM_ENGINEERING_REPO }} TEAM_CONTENT_REPO: ${{ secrets.TEAM_CONTENT_REPO }} diff --git a/.github/workflows/move-reopened-issues-to-triage.yaml b/.github/workflows/move-reopened-issues-to-triage.yaml index 415c97d8c85a..617dc95182fd 100644 --- a/.github/workflows/move-reopened-issues-to-triage.yaml +++ b/.github/workflows/move-reopened-issues-to-triage.yaml @@ -14,7 +14,7 @@ jobs: if: github.repository == 'github/docs' runs-on: ubuntu-latest steps: - - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ github.token }} script: | diff --git a/.github/workflows/repo-sync-stalls.yml b/.github/workflows/repo-sync-stalls.yml index 6a40377c5e82..5b0927bc788d 100644 --- a/.github/workflows/repo-sync-stalls.yml +++ b/.github/workflows/repo-sync-stalls.yml @@ -15,7 +15,7 @@ jobs: steps: - if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' name: Check if repo sync is stalled - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }} script: | diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 5f1cfb12d9af..d3af62973f37 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -37,7 +37,7 @@ jobs: - name: Close pull request if unwanted if: ${{ github.repository == 'github/docs' && steps.find-pull-request.outputs.number }} - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ secrets.DOCS_BOT_SPAM_VISION }} script: | @@ -139,7 +139,7 @@ jobs: # There are cases where the branch becomes out-of-date in between the time this workflow began and when the pull request is created/updated - name: Update branch if: ${{ steps.find-pull-request.outputs.number }} - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }} script: | @@ -188,7 +188,7 @@ jobs: - name: Enable GitHub auto-merge if: ${{ steps.find-pull-request.outputs.number }} - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }} script: | diff --git a/.github/workflows/start-new-engineering-pr-workflow.yml b/.github/workflows/start-new-engineering-pr-workflow.yml index 1ea1d245143e..f77686af2022 100644 --- a/.github/workflows/start-new-engineering-pr-workflow.yml +++ b/.github/workflows/start-new-engineering-pr-workflow.yml @@ -19,7 +19,7 @@ jobs: DRAFT_COLUMN_ID: 10095775 REGULAR_COLUMN_ID: 10095779 steps: - - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d continue-on-error: true with: github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }} diff --git a/.github/workflows/transfer-api-issue-to-openapi.yml b/.github/workflows/transfer-api-issue-to-openapi.yml index fac0bf96bb30..0838502fc7f3 100644 --- a/.github/workflows/transfer-api-issue-to-openapi.yml +++ b/.github/workflows/transfer-api-issue-to-openapi.yml @@ -16,7 +16,7 @@ jobs: if: github.event.label.name == 'rest-schema' && github.repository == 'github/docs' steps: - name: Check if this run was triggered by a member of the docs team - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d id: triggered-by-member with: github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}} diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 9ed82ba41fd2..1b84ada807a0 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -31,7 +31,7 @@ jobs: state: open - if: ${{ steps.pr.outputs.number }} name: Check if already labeled - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d id: has-label with: script: | @@ -51,7 +51,7 @@ jobs: number: ${{ steps.pr.outputs.number }} - if: ${{ !steps.has-label.outputs.result }} name: Add automerge label - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/triage-issue-comments.yml b/.github/workflows/triage-issue-comments.yml index e6bb3497609e..2879f7fba8ef 100644 --- a/.github/workflows/triage-issue-comments.yml +++ b/.github/workflows/triage-issue-comments.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Check if the event originated from a team member - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d id: is-internal-contributor with: github-token: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/triage-unallowed-contributions.yml b/.github/workflows/triage-unallowed-contributions.yml index 55b01808e922..8abc6e841a1f 100644 --- a/.github/workflows/triage-unallowed-contributions.yml +++ b/.github/workflows/triage-unallowed-contributions.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f - name: Check for existing requested changes id: requested-change - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{secrets.GITHUB_TOKEN}} result-encoding: json @@ -82,7 +82,7 @@ jobs: - name: Request pull request changes # Check for no reviews or reviews that aren't CHANGES_REQUESTED if: ${{ steps.filter.outputs.notAllowed == 'true' && (!steps.requested-change.outputs.result || fromJson(steps.requested-change.outputs.result).state != 'CHANGES_REQUESTED') }} - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -118,7 +118,7 @@ jobs: # Check that unallowed files aren't modified and that a # CHANGES_REQUESTED review already exists if: ${{ steps.filter.outputs.notAllowed == 'false' && steps.requested-change.outputs.result && fromJson(steps.requested-change.outputs.result).state == 'CHANGES_REQUESTED' }} - uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9 + uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d with: github-token: ${{secrets.GITHUB_TOKEN}} script: |