diff --git a/.github/workflows/automerge-dependencies.yml b/.github/workflows/automerge-dependencies.yml index 31ccf83f0fc9..5873570e4963 100644 --- a/.github/workflows/automerge-dependencies.yml +++ b/.github/workflows/automerge-dependencies.yml @@ -68,7 +68,7 @@ jobs: # Because we get far too much spam ;_; - name: Lock conversations - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: PR_NUMBER: ${{ github.event.pull_request.number }} with: diff --git a/.github/workflows/check-for-spammy-issues.yml b/.github/workflows/check-for-spammy-issues.yml index 07eae96f2347..25325a196185 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + - uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_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 17cebab5ae9d..dbe467782aec 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd 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 f7cd49066650..f2ad131bcbb1 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.event.label.name == 'graphql-description') && github.repository == 'github/docs' steps: - name: Check if this run was triggered by a member of the docs team - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd id: triggered-by-member with: github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} diff --git a/.github/workflows/first-responder-docs-content.yml b/.github/workflows/first-responder-docs-content.yml index 7c64bcf69983..0abe20a9a3a2 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd id: set-result with: github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} @@ -68,7 +68,7 @@ jobs: steps: - name: Remove card from project - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} result-encoding: string diff --git a/.github/workflows/hubber-contribution-help.yml b/.github/workflows/hubber-contribution-help.yml index ec1eafe32996..8a6a8184196c 100644 --- a/.github/workflows/hubber-contribution-help.yml +++ b/.github/workflows/hubber-contribution-help.yml @@ -20,7 +20,7 @@ jobs: pull-requests: write steps: - id: membership_check - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }} script: | diff --git a/.github/workflows/merged-notification.yml b/.github/workflows/merged-notification.yml index 7e82935e7cac..d8a746876558 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 && github.event.pull_request.user.login != 'Octomerger' runs-on: ubuntu-latest steps: - - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + - uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd 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 384cc235bc1d..2204311cf183 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd 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 acabc4308882..f34c72c0fd5e 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd 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 925ab443ce29..fbe5f914a6ff 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + - uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ github.token }} script: | diff --git a/.github/workflows/notify-when-maintainers-cannot-edit.yaml b/.github/workflows/notify-when-maintainers-cannot-edit.yaml index 85edabb89b2b..63b5cd2e8224 100644 --- a/.github/workflows/notify-when-maintainers-cannot-edit.yaml +++ b/.github/workflows/notify-when-maintainers-cannot-edit.yaml @@ -17,7 +17,7 @@ jobs: if: github.repository == 'github/docs' runs-on: ubuntu-latest steps: - - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + - uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: script: | const query = ` diff --git a/.github/workflows/os-ready-for-review.yml b/.github/workflows/os-ready-for-review.yml index 638d93f2628c..90b282d93be4 100644 --- a/.github/workflows/os-ready-for-review.yml +++ b/.github/workflows/os-ready-for-review.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check if this run was triggered by a member of the docs team - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd id: triggered-by-member with: github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} diff --git a/.github/workflows/prod-build-deploy.yml b/.github/workflows/prod-build-deploy.yml index bd41c18a5643..5906a9ec7c77 100644 --- a/.github/workflows/prod-build-deploy.yml +++ b/.github/workflows/prod-build-deploy.yml @@ -89,7 +89,7 @@ jobs: - name: Create a Heroku build source id: build-source - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }} with: @@ -144,7 +144,7 @@ jobs: run: .github/actions-scripts/prod-deploy.js - name: Mark the deployment as inactive if timed out - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd if: ${{ steps.deploy.outcome == 'cancelled' }} env: DEPLOYMENT_ID: ${{ steps.deploy.outputs.deploymentId }} diff --git a/.github/workflows/repo-sync-stalls.yml b/.github/workflows/repo-sync-stalls.yml index 2d5c7029c68f..eb3d10c14db1 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }} script: | diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index cb661982e438..d3f905ef8f4f 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ secrets.DOCS_BOT_SPAM_VISION }} script: | @@ -152,7 +152,7 @@ jobs: # Because we get far too much spam ;_; - name: Lock conversations if: ${{ github.repository == 'github/docs' && steps.find-pull-request.outputs.number }} - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: script: | try { @@ -170,7 +170,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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }} script: | diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index 6e8ba10812e2..eb6b30faf7be 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -62,7 +62,7 @@ jobs: steps: - name: Find the originating pull request id: pr - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: BUILD_ACTIONS_RUN_ID: ${{ env.BUILD_ACTIONS_RUN_ID }} with: @@ -174,7 +174,7 @@ jobs: steps: - name: Verify build workflow run was not cancelled id: check-workflow-run - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: BUILD_ACTIONS_RUN_ID: ${{ env.BUILD_ACTIONS_RUN_ID }} with: @@ -224,7 +224,7 @@ jobs: steps: - name: Check pull request state id: check-pr - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: PR_NUMBER: ${{ needs.pr-metadata.outputs.number }} with: @@ -273,7 +273,7 @@ jobs: source_blob_url: ${{ steps.build-source.outputs.download_url }} steps: - name: Create initial status - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: CONTEXT_NAME: ${{ env.CONTEXT_NAME }} ACTIONS_RUN_LOG: ${{ env.ACTIONS_RUN_LOG }} @@ -366,7 +366,7 @@ jobs: - name: Create a Heroku build source id: build-source - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }} with: @@ -407,7 +407,7 @@ jobs: --data-binary @app.tar.gz - name: Create failure status - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd if: ${{ failure() }} env: CONTEXT_NAME: ${{ env.CONTEXT_NAME }} @@ -450,7 +450,7 @@ jobs: steps: - name: Check pull request state id: check-pr - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd env: PR_NUMBER: ${{ needs.pr-metadata.outputs.number }} with: @@ -503,7 +503,7 @@ jobs: run: .github/actions-scripts/staging-deploy.js - name: Mark the deployment as inactive if timed out - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd if: ${{ steps.deploy.outcome == 'cancelled' }} env: DEPLOYMENT_ID: ${{ steps.deploy.outputs.deploymentId }} @@ -534,7 +534,7 @@ jobs: console.log('⏲️ Deployment status: error - The deployment timed out...') - name: Create failure status - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd if: ${{ failure() }} env: CONTEXT_NAME: ${{ env.CONTEXT_NAME }} diff --git a/.github/workflows/start-new-engineering-pr-workflow.yml b/.github/workflows/start-new-engineering-pr-workflow.yml index 352b48dfa9e5..ab16d0f1ecb9 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + - uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd continue-on-error: true with: github-token: ${{ secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES }} diff --git a/.github/workflows/transfer-api-issue-to-openapi.yml b/.github/workflows/transfer-api-issue-to-openapi.yml index b03c55e3715d..8181335512ec 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@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd id: triggered-by-member with: github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} diff --git a/.github/workflows/transfer-to-localization-repo.yml b/.github/workflows/transfer-to-localization-repo.yml index 0e34e61a3c58..2bf48b278578 100644 --- a/.github/workflows/transfer-to-localization-repo.yml +++ b/.github/workflows/transfer-to-localization-repo.yml @@ -19,7 +19,7 @@ jobs: if: (github.event.label.name == 'localization ' && github.repository == 'github/docs') steps: - name: Check if this run was triggered by a member of the docs team - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd id: triggered-by-member with: github-token: ${{secrets.DOCUBOT_READORG_REPO_WORKFLOW_SCOPES}} diff --git a/.github/workflows/triage-issue-comments.yml b/.github/workflows/triage-issue-comments.yml index 0d06cd78257e..f516ded079e9 100644 --- a/.github/workflows/triage-issue-comments.yml +++ b/.github/workflows/triage-issue-comments.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Check if the event originated from a team member - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd 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 30e1d18494aa..f6be9889a47a 100644 --- a/.github/workflows/triage-unallowed-contributions.yml +++ b/.github/workflows/triage-unallowed-contributions.yml @@ -73,7 +73,7 @@ jobs: # explaining this to the PR author - name: "Comment about changes we can't accept" if: ${{ steps.filter.outputs.notAllowed }} - uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d + uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |