diff --git a/.github/workflows/assembler-preview.yml b/.github/workflows/assembler-preview.yml index 3eed93173..3cecdef8c 100644 --- a/.github/workflows/assembler-preview.yml +++ b/.github/workflows/assembler-preview.yml @@ -57,7 +57,7 @@ jobs: } - name: Checkout - uses: actions/checkout@v7.0.1 + uses: actions/checkout@v7 with: ref: ${{ steps.pr-details.outputs.result || github.event.pull_request.head.sha }} persist-credentials: false diff --git a/.github/workflows/build-changelog-scrubber-lambda.yml b/.github/workflows/build-changelog-scrubber-lambda.yml index 2d51e574b..f2ddbccd9 100644 --- a/.github/workflows/build-changelog-scrubber-lambda.yml +++ b/.github/workflows/build-changelog-scrubber-lambda.yml @@ -22,7 +22,7 @@ jobs: env: BINARY_PATH: .artifacts/docs-lambda-changelog-scrubber/release_linux-x64/bootstrap steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: ref: ${{ inputs.ref }} persist-credentials: false diff --git a/.github/workflows/build-link-index-updater-lambda.yml b/.github/workflows/build-link-index-updater-lambda.yml index db99b7d2b..2d9d62c16 100644 --- a/.github/workflows/build-link-index-updater-lambda.yml +++ b/.github/workflows/build-link-index-updater-lambda.yml @@ -22,7 +22,7 @@ jobs: env: BINARY_PATH: .artifacts/docs-lambda-index-publisher/release_linux-x64/bootstrap steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: ref: ${{ inputs.ref }} persist-credentials: false diff --git a/.github/workflows/build-openapi-index-lambda.yml b/.github/workflows/build-openapi-index-lambda.yml index 71ea8209b..23c42783b 100644 --- a/.github/workflows/build-openapi-index-lambda.yml +++ b/.github/workflows/build-openapi-index-lambda.yml @@ -22,7 +22,7 @@ jobs: env: BINARY_PATH: .artifacts/docs-lambda-openapi-index/release_linux-x64/bootstrap steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: ref: ${{ inputs.ref }} persist-credentials: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb4d05383..948ba3359 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: needs: [lint] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false @@ -49,7 +49,7 @@ jobs: run: working-directory: src/Elastic.Documentation.Site steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false @@ -86,7 +86,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false @@ -107,7 +107,7 @@ jobs: - macos-latest - windows-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false - name: 'Windows only, set TEMP to the same drive' @@ -159,7 +159,7 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 71ceb78d8..f9e128c54 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -52,7 +52,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: persist-credentials: false diff --git a/.github/workflows/create-major-tag.yml b/.github/workflows/create-major-tag.yml index 03ed6c192..4a9f088c4 100644 --- a/.github/workflows/create-major-tag.yml +++ b/.github/workflows/create-major-tag.yml @@ -15,7 +15,7 @@ jobs: create-major-tag: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: true - name: Get major version diff --git a/.github/workflows/docs-preview-local.yml b/.github/workflows/docs-preview-local.yml index c0ddcb19c..49a5ce256 100644 --- a/.github/workflows/docs-preview-local.yml +++ b/.github/workflows/docs-preview-local.yml @@ -94,7 +94,7 @@ jobs: steps: - name: Checkout if: github.event_name == 'push' - uses: actions/checkout@v7.0.1 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha || github.ref }} persist-credentials: false @@ -212,7 +212,7 @@ jobs: if: > env.MATCH == 'true' && needs.check.outputs.any_modified != 'false' - uses: actions/checkout@v7.0.1 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha || github.ref }} persist-credentials: false diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index c8ffccd86..0ae984b7b 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 181c7409b..d035abae0 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -27,7 +27,7 @@ jobs: steps: - id: repo-basename run: 'echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT' - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false - name: Setup Pages @@ -59,7 +59,7 @@ jobs: major-version: ${{ steps.bootstrap.outputs.major-version }} steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f35f2dc89..9b490cb0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: major-version: ${{ steps.bootstrap.outputs.major-version }} steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: ref: ${{ needs.release-drafter.outputs.tag_name }} persist-credentials: false @@ -298,7 +298,7 @@ jobs: major-version: ${{ steps.bootstrap.outputs.major-version }} steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: ref: ${{ needs.release-drafter.outputs.tag_name }} persist-credentials: false diff --git a/.github/workflows/required-labels.yml b/.github/workflows/required-labels.yml index a32d63c45..fecf89ecf 100644 --- a/.github/workflows/required-labels.yml +++ b/.github/workflows/required-labels.yml @@ -18,7 +18,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false - name: Wait for PR to be ready (if just opened) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index bc0d7247c..393a5393c 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -26,13 +26,13 @@ jobs: landing-page-path-output: "" steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false - name: Bootstrap Action Workspace uses: ./.github/actions/bootstrap - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: repository: ${{ matrix.repository }} path: test-repo diff --git a/.github/workflows/updatecli.yml b/.github/workflows/updatecli.yml index 568d35c86..2eadf1ddb 100644 --- a/.github/workflows/updatecli.yml +++ b/.github/workflows/updatecli.yml @@ -16,7 +16,7 @@ jobs: bump: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 540c4a974..f407da1f6 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -16,7 +16,7 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false