diff --git a/.github/workflows/assembler-preview-cleanup.yml b/.github/workflows/assembler-preview-cleanup.yml index c74159b32..eb76554b2 100644 --- a/.github/workflows/assembler-preview-cleanup.yml +++ b/.github/workflows/assembler-preview-cleanup.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Delete GitHub environment - uses: actions/github-script@v8 + uses: actions/github-script@v9 id: delete-deployment with: script: | diff --git a/.github/workflows/assembler-preview.yml b/.github/workflows/assembler-preview.yml index 6cc73d85d..bc6fb22fc 100644 --- a/.github/workflows/assembler-preview.yml +++ b/.github/workflows/assembler-preview.yml @@ -29,7 +29,7 @@ jobs: - name: Get PR details if: github.event_name == 'workflow_dispatch' id: pr-details - uses: actions/github-script@v8 + uses: actions/github-script@v9 env: PR_NUMBER: ${{ inputs.pr_number }} with: @@ -62,7 +62,7 @@ jobs: persist-credentials: false - name: Create Deployment - uses: actions/github-script@v8 + uses: actions/github-script@v9 id: deployment env: PR_SHA: ${{ steps.pr-details.outputs.result || github.event.pull_request.head.sha }} @@ -115,7 +115,7 @@ jobs: - name: Update Deployment Status if: always() && steps.deployment.outputs.result - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | await github.rest.repos.createDeploymentStatus({ diff --git a/.github/workflows/auto-add-needs-triage-label.yml b/.github/workflows/auto-add-needs-triage-label.yml index c555696fd..dcd5ae1fc 100644 --- a/.github/workflows/auto-add-needs-triage-label.yml +++ b/.github/workflows/auto-add-needs-triage-label.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Add needs triage label - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | github.rest.issues.addLabels({ diff --git a/.github/workflows/comment-on-asciidoc-changes.yml b/.github/workflows/comment-on-asciidoc-changes.yml index 17909ef80..d58d944c3 100644 --- a/.github/workflows/comment-on-asciidoc-changes.yml +++ b/.github/workflows/comment-on-asciidoc-changes.yml @@ -29,7 +29,7 @@ jobs: - name: Add a comment if .asciidoc files changed if: steps.check-files.outputs.any_changed == 'true' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | github.rest.issues.createComment({ diff --git a/.github/workflows/detect-duplicate-issues.yml b/.github/workflows/detect-duplicate-issues.yml index f85a7a4d5..ff3a1955f 100644 --- a/.github/workflows/detect-duplicate-issues.yml +++ b/.github/workflows/detect-duplicate-issues.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Detect potential duplicate issues - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const { owner, repo } = context.repo; diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index cc40ed97e..10c45a375 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -179,7 +179,7 @@ jobs: - name: Get modified file detail if: contains(fromJSON('["merge_group", "pull_request", "pull_request_target"]'), github.event_name) id: check-modified-file-detail - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: PATH_PATTERN: "${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }}" IGNORE_PATTERNS: | @@ -284,7 +284,7 @@ jobs: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || startsWith(github.event_name, 'pull_request') ) - uses: actions/github-script@v8 + uses: actions/github-script@v9 id: deployment env: PR_NUMBER: ${{ github.event.pull_request.number }} @@ -469,7 +469,7 @@ jobs: uses: elastic/docs-builder/actions/update-link-index@main - name: Update deployment status - uses: actions/github-script@v8 + uses: actions/github-script@v9 # disabled: deployments are not enabled on this branch if: > false @@ -509,7 +509,7 @@ jobs: steps: - name: Comment on PR continue-on-error: true - uses: actions/github-script@v8 + uses: actions/github-script@v9 env: ALL_CHANGED_FILES: ${{ needs.check.outputs.all_changed_files }} PATH_PREFIX: ${{ needs.build.outputs.path_prefix }} @@ -584,7 +584,7 @@ jobs: } - name: Comment on docs changes about versioning requirements if: inputs.enable-cumulative-comment == true - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: github-token: ${{ secrets.GITHUB_TOKEN }} # language=javascript diff --git a/.github/workflows/preview-cleanup.yml b/.github/workflows/preview-cleanup.yml index b246698c7..40d68f56b 100644 --- a/.github/workflows/preview-cleanup.yml +++ b/.github/workflows/preview-cleanup.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Delete GitHub environment - uses: actions/github-script@v8 + uses: actions/github-script@v9 id: delete-deployment with: script: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b63397e4..e3bfaa1b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: with: commitish: ${{ github.sha }} - name: Create tag - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | github.rest.git.createRef({