diff --git a/.github/workflows/auto-add-needs-triage-label.yml b/.github/workflows/auto-add-needs-triage-label.yml index 3dbb9d79f..c555696fd 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@v7 + uses: actions/github-script@v8 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 69131272f..17909ef80 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@v7 + uses: actions/github-script@v8 with: script: | github.rest.issues.createComment({ diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 70f901ced..ab8cf2367 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -147,7 +147,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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 env: PATH_PATTERN: "${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }}" IGNORE_PATTERNS: | @@ -240,7 +240,7 @@ jobs: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || (needs.check.outputs.any_modified == 'true' && startsWith(github.event_name, 'pull_request')) ) - uses: actions/github-script@v7 + uses: actions/github-script@v8 id: deployment env: PR_NUMBER: ${{ github.event.pull_request.number }} @@ -465,7 +465,7 @@ jobs: uses: elastic/docs-builder/actions/update-link-index@main - name: Update deployment status - uses: actions/github-script@v7 + uses: actions/github-script@v8 if: > env.MATCH == 'true' && always() @@ -501,7 +501,7 @@ jobs: steps: - name: Comment on PR continue-on-error: true - uses: actions/github-script@v7 + uses: actions/github-script@v8 env: ALL_CHANGED_FILES: ${{ needs.check.outputs.all_changed_files }} PATH_PREFIX: ${{ needs.build.outputs.path_prefix }} @@ -576,7 +576,7 @@ jobs: } - name: Comment on docs changes about versioning requirements if: inputs.enable-cumulative-comment == true - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: github-token: ${{ secrets.GITHUB_TOKEN }} # language=javascript diff --git a/.github/workflows/preview-cleanup.yml b/.github/workflows/preview-cleanup.yml index b11f8ea43..b246698c7 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@v7 + uses: actions/github-script@v8 id: delete-deployment with: script: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8667a2a6..e42156b00 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@v7 + uses: actions/github-script@v8 with: script: | github.rest.git.createRef({