This is an automated email from the ASF dual-hosted git repository. adoroszlai pushed a commit to branch ozone-2.2 in repository https://gitbox.apache.org/repos/asf/ozone.git
commit ef520bd985ab3ccd9d1541287a84d35619f7e8d0 Author: Doroszlai, Attila <[email protected]> AuthorDate: Sat Oct 17 20:32:16 2026 +0200 HDDS-16816. Pin first-party actions to a major version tag (#11456) (cherry picked from commit ccd3dfa20b4f65e61a2554bed90a2a4cf0cad6db) --- .github/workflows/asf-allowlist-check.yaml | 4 +-- .github/workflows/build-ratis.yml | 10 +++---- .github/workflows/check.yml | 24 +++++++-------- .github/workflows/ci.yml | 16 +++++----- .github/workflows/close-stale-prs.yaml | 2 +- .github/workflows/generate-config-doc.yml | 8 ++--- .github/workflows/intermittent-test-check.yml | 26 ++++++++-------- .github/workflows/label-pr.yml | 2 +- .github/workflows/populate-cache.yml | 10 +++---- .github/workflows/pull-request.yml | 2 +- .github/workflows/repeat-acceptance.yml | 18 +++++------ .github/workflows/update-ozone-site-config-doc.yml | 4 +-- .github/workflows/zizmor.yml | 4 ++- .github/{workflows/pull-request.yml => zizmor.yml} | 35 ++++------------------ 14 files changed, 72 insertions(+), 93 deletions(-) diff --git a/.github/workflows/asf-allowlist-check.yaml b/.github/workflows/asf-allowlist-check.yaml index 6e5f1a5be63..75804f39340 100644 --- a/.github/workflows/asf-allowlist-check.yaml +++ b/.github/workflows/asf-allowlist-check.yaml @@ -40,10 +40,10 @@ jobs: runs-on: ubuntu-slim steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false - name: Check actions - uses: apache/infrastructure-actions/allowlist-check@47b297bbe90f580139129bee531bd84bd95b7f5d # allowlist-check/v1.0.4 + uses: apache/infrastructure-actions/allowlist-check@allowlist-check/v1 with: scan-glob: ".github/workflows/*.y*ml" diff --git a/.github/workflows/build-ratis.yml b/.github/workflows/build-ratis.yml index ef7169d332f..75cf9c82ad8 100644 --- a/.github/workflows/build-ratis.yml +++ b/.github/workflows/build-ratis.yml @@ -69,20 +69,20 @@ jobs: thirdparty-version: ${{ steps.versions.outputs.thirdparty }} steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false repository: ${{ inputs.repo }} ref: ${{ inputs.ref }} - name: Cache for maven dependencies - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache@v6 with: path: | ~/.m2/repository !~/.m2/repository/org/apache/ratis key: ratis-dependencies-${{ hashFiles('**/pom.xml') }} - name: Setup java - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: 8 @@ -101,7 +101,7 @@ jobs: mvn -B --no-transfer-progress -Dscan=false versions:set -DnewVersion="$ratis_version" dev-support/checks/build.sh - name: Store Maven repo for tests - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ratis-jars path: | @@ -118,7 +118,7 @@ jobs: protobuf-version: ${{ steps.versions.outputs.protobuf }} steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false repository: apache/ratis-thirdparty diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2dfd7f3f0a8..341b682ba40 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -153,7 +153,7 @@ jobs: steps: - name: Checkout project if: ${{ !inputs.needs-ozone-source-tarball }} - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ inputs.sha }} @@ -161,7 +161,7 @@ jobs: - name: Download Ozone source tarball if: ${{ inputs.needs-ozone-source-tarball }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ozone-src @@ -172,7 +172,7 @@ jobs: - name: Cache for NPM dependencies if: ${{ inputs.needs-npm-cache }} - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache@v6 with: path: | ~/.pnpm-store @@ -182,7 +182,7 @@ jobs: - name: Cache for Maven dependencies if: ${{ inputs.needs-maven-cache }} - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/restore@v6 with: path: | ~/.m2/repository/*/*/* @@ -194,7 +194,7 @@ jobs: - name: Download Ozone repo id: download-ozone-repo if: ${{ inputs.needs-ozone-repo }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ozone-repo path: | @@ -202,7 +202,7 @@ jobs: - name: Download Ratis repo if: ${{ inputs.ratis-args != '' }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ratis-jars path: | @@ -210,7 +210,7 @@ jobs: - name: Download Ozone binary tarball if: ${{ inputs.needs-ozone-binary-tarball }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ozone-bin @@ -223,7 +223,7 @@ jobs: - name: Setup java ${{ inputs.java-version }} if: ${{ inputs.java-version }} - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ inputs.java-version }} @@ -267,7 +267,7 @@ jobs: - name: Archive build results if: ${{ !cancelled() }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ${{ (inputs.split && format('{0}-{1}', inputs.script, inputs.split)) || inputs.script }} # please keep path as a single item; move to that directory all files needed in the artifact @@ -278,7 +278,7 @@ jobs: # to avoid the need for 3 more inputs. - name: Store binaries for tests if: ${{ inputs.script == 'build' && !cancelled() }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ozone-bin path: | @@ -288,7 +288,7 @@ jobs: - name: Store source tarball for compilation if: ${{ inputs.script == 'build' && !cancelled() }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ozone-src path: | @@ -297,7 +297,7 @@ jobs: - name: Store Maven repo for tests if: ${{ inputs.script == 'build' && !cancelled() }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ozone-repo path: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a705ed3457..38d69687021 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,19 +70,19 @@ jobs: with-coverage: ${{ env.OZONE_WITH_COVERAGE }} steps: - name: "Checkout ${{ github.ref }} / ${{ github.sha }} (push)" - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false if: github.event_name == 'push' - name: "Checkout ${{ github.sha }} with its parent (pull request)" - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: ref: ${{ github.sha }} fetch-depth: 2 persist-credentials: false if: github.event_name == 'pull_request' - name: "Checkout ${{ inputs.ref }} given in workflow input (manual dispatch)" - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: ref: ${{ inputs.ref }} persist-credentials: false @@ -360,13 +360,13 @@ jobs: - integration steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: fetch-depth: 0 persist-credentials: false ref: ${{ needs.build-info.outputs.sha }} - name: Cache for maven dependencies - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/restore@v6 with: path: | ~/.m2/repository/*/*/* @@ -375,7 +375,7 @@ jobs: restore-keys: | maven-repo- - name: Download artifacts - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: path: target/artifacts - name: Untar binaries @@ -383,7 +383,7 @@ jobs: mkdir -p hadoop-ozone/dist/target tar xzvf target/artifacts/ozone-bin/ozone*.tar.gz -C hadoop-ozone/dist/target - name: Setup java ${{ env.TEST_JAVA_VERSION }} - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ env.TEST_JAVA_VERSION }} @@ -397,7 +397,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: Archive build results - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: coverage path: target/coverage diff --git a/.github/workflows/close-stale-prs.yaml b/.github/workflows/close-stale-prs.yaml index 6ab13557cd7..7e59aef3646 100644 --- a/.github/workflows/close-stale-prs.yaml +++ b/.github/workflows/close-stale-prs.yaml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-slim steps: - name: Close Stale PRs - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 + uses: actions/stale@v11 with: stale-pr-label: 'stale' exempt-draft-pr: false diff --git a/.github/workflows/generate-config-doc.yml b/.github/workflows/generate-config-doc.yml index a0451a7d4b6..73e10a2d2bb 100644 --- a/.github/workflows/generate-config-doc.yml +++ b/.github/workflows/generate-config-doc.yml @@ -28,18 +28,18 @@ jobs: runs-on: ubuntu-slim steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ inputs.sha }} - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + uses: actions/setup-python@v7 with: python-version: '3.x' - name: Download ozone-bin artifact - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ozone-bin path: ozone-bin @@ -54,7 +54,7 @@ jobs: python3 dev-support/ci/xml_to_md.py ozone-bin/extracted Configurations.md - name: Upload generated documentation - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: config-documentation path: Configurations.md diff --git a/.github/workflows/intermittent-test-check.yml b/.github/workflows/intermittent-test-check.yml index 2e6e9a1a7c0..c898356d77f 100644 --- a/.github/workflows/intermittent-test-check.yml +++ b/.github/workflows/intermittent-test-check.yml @@ -78,7 +78,7 @@ jobs: outputs: matrix: ${{steps.generate.outputs.matrix}} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.event.inputs.ref }} @@ -107,12 +107,12 @@ jobs: timeout-minutes: 60 steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.event.inputs.ref }} - name: Cache for maven dependencies - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/restore@v6 with: path: | ~/.m2/repository/*/*/* @@ -122,13 +122,13 @@ jobs: maven-repo- - name: Download Ratis repo if: ${{ github.event.inputs.ratis-ref != '' }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ratis-jars path: | ~/.m2/repository/org/apache/ratis - name: Setup java - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ github.event.inputs.java-version }} @@ -142,7 +142,7 @@ jobs: env: ratis_args: ${{ needs.ratis.outputs.build-args }} - name: Store Maven repo for tests - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ozone-repo path: | @@ -161,12 +161,12 @@ jobs: split: ${{fromJson(needs.prepare-job.outputs.matrix)}} # Define splits fail-fast: ${{ fromJson(github.event.inputs.fail-fast) }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.event.inputs.ref }} - name: Cache for maven dependencies - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/restore@v6 with: path: | ~/.m2/repository/*/*/* @@ -176,20 +176,20 @@ jobs: maven-repo- - name: Download Ratis repo if: ${{ github.event.inputs.ratis-ref != '' }} - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ratis-jars path: | ~/.m2/repository/org/apache/ratis - name: Download Ozone repo id: download-ozone-repo - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ozone-repo path: | ~/.m2/repository/org/apache/ozone - name: Setup java - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ github.event.inputs.java-version }} @@ -220,7 +220,7 @@ jobs: run: hadoop-ozone/dev-support/checks/_summary.sh target/unit/summary.txt if: ${{ failure() }} - name: Archive build results - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 if: ${{ failure() }} with: name: result-${{ github.run_number }}-${{ github.run_id }}-split-${{ matrix.split }} @@ -231,7 +231,7 @@ jobs: runs-on: ubuntu-slim steps: - name: Download build results - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 - name: Count failures run: | failures=$(find . -name 'summary.txt' | grep --text -v 'iteration' | xargs grep --text -v 'exit code: 0' | wc -l) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 2792a5ae38f..20c41cc5b43 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -37,7 +37,7 @@ jobs: fail-fast: false steps: - name: "Checkout project" # required for `gh` CLI - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false sparse-checkout: | diff --git a/.github/workflows/populate-cache.yml b/.github/workflows/populate-cache.yml index bba2562a670..671f32aa9c4 100644 --- a/.github/workflows/populate-cache.yml +++ b/.github/workflows/populate-cache.yml @@ -45,13 +45,13 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false - name: Restore cache for Maven dependencies id: restore-cache - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/restore@v6 with: path: | ~/.m2/repository/*/*/* @@ -60,7 +60,7 @@ jobs: - name: Setup Java if: steps.restore-cache.outputs.cache-hit != 'true' - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ env.TEST_JAVA_VERSION }} @@ -73,7 +73,7 @@ jobs: - name: Restore NodeJS tarballs id: restore-nodejs if: steps.restore-cache.outputs.cache-hit != 'true' - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache@v6 with: path: ~/.m2/repository/com/github/eirslett/node key: nodejs-${{ steps.nodejs-version.outputs.nodejs-version }} @@ -109,7 +109,7 @@ jobs: - name: Save cache for Maven dependencies if: steps.restore-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/save@v6 with: path: | ~/.m2/repository/*/*/* diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0dc2c044eab..7a0e78f5a34 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-slim steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false - name: Check pull request title diff --git a/.github/workflows/repeat-acceptance.yml b/.github/workflows/repeat-acceptance.yml index 05935594d65..34bf06dd943 100644 --- a/.github/workflows/repeat-acceptance.yml +++ b/.github/workflows/repeat-acceptance.yml @@ -57,7 +57,7 @@ jobs: outputs: matrix: ${{steps.generate.outputs.matrix}} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.event.inputs.ref }} @@ -83,12 +83,12 @@ jobs: timeout-minutes: 60 steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.event.inputs.ref }} - name: Cache for npm dependencies - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache@v6 with: path: | ~/.pnpm-store @@ -97,7 +97,7 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm- - name: Cache for maven dependencies - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + uses: actions/cache/restore@v6 with: path: | ~/.m2/repository/*/*/* @@ -107,7 +107,7 @@ jobs: maven-repo-${{ hashFiles('**/pom.xml') }} maven-repo- - name: Setup java - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + uses: actions/setup-java@v6 with: distribution: 'temurin' java-version: ${{ env.JAVA_VERSION }} @@ -116,7 +116,7 @@ jobs: env: DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: Store binaries for tests - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 with: name: ozone-bin path: | @@ -134,12 +134,12 @@ jobs: split: ${{ fromJson(needs.prepare-job.outputs.matrix) }} fail-fast: ${{ fromJson(github.event.inputs.fail-fast) }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.event.inputs.ref }} - name: Download compiled Ozone binaries - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: ozone-bin - name: Untar binaries @@ -158,7 +158,7 @@ jobs: run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ github.job }}/summary.txt if: ${{ !cancelled() }} - name: Archive build results - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@v7 if: always() with: name: acceptance-${{ matrix.split }} diff --git a/.github/workflows/update-ozone-site-config-doc.yml b/.github/workflows/update-ozone-site-config-doc.yml index b45823a73f7..2231595f20f 100644 --- a/.github/workflows/update-ozone-site-config-doc.yml +++ b/.github/workflows/update-ozone-site-config-doc.yml @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-slim steps: - name: Download generated documentation - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@v8 with: name: config-documentation path: . @@ -103,7 +103,7 @@ jobs: - name: Checkout ozone repository for script access if: steps.check-changes.outputs.changed == 'true' - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false ref: ${{ github.sha }} diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 0b0b168e351..75f3d55fc98 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -23,9 +23,11 @@ on: - '**' paths: - '.github/workflows/**' + - '.github/zizmor.yml' pull_request: paths: - '.github/workflows/**' + - '.github/zizmor.yml' permissions: { } @@ -40,7 +42,7 @@ jobs: security-events: write steps: - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@v7 with: persist-credentials: false diff --git a/.github/workflows/pull-request.yml b/.github/zizmor.yml similarity index 53% copy from .github/workflows/pull-request.yml copy to .github/zizmor.yml index 0dc2c044eab..b502f74fe54 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/zizmor.yml @@ -13,32 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: pull request - -on: - pull_request: - types: - - reopened - - opened - - edited - - synchronize - -permissions: { } - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - title: - runs-on: ubuntu-slim - steps: - - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Check pull request title - env: - TITLE: ${{ github.event.pull_request.title }} - run: - dev-support/ci/pr_title_check.sh "${TITLE}" +rules: + unpinned-uses: + config: + policies: + actions/*: ref-pin + apache/*: ref-pin --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
