chore(deps): Bump actions/setup-java from 5.5.0 to 5.6.0 #207
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Action | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - converted_to_draft | |
| - ready_for_review | |
| - synchronize | |
| - opened | |
| - reopened | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test-all: | |
| name: Test All Features | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Action | |
| uses: ./ | |
| id: test-all | |
| with: | |
| egress-policy: audit | |
| checkout: true | |
| checkout-fetch-depth: 0 | |
| checkout-ref: main | |
| checkout-token: ${{ secrets.GITHUB_TOKEN }} | |
| checkout-path: '.' | |
| checkout-persist: true | |
| checkout-submodules: false | |
| setup-java: true | |
| java-distribution: 'temurin' | |
| java-version: '25' | |
| setup-gradle: true | |
| gradle-version: '9.2.1' | |
| setup-node: true | |
| node-version: '24' | |
| setup-python: true | |
| python-version: '3.9' | |
| setup-go: true | |
| go-version: '1.20' | |
| setup-rust: true | |
| rust-version: '1.70.0' | |
| setup-swift: true | |
| swift-version: '5.7' | |
| setup-task: true | |
| task-version: '3.50.0' | |
| task-retries: '3' | |
| setup-gomplate: true | |
| setup-jq: true | |
| setup-semver: true | |
| setup-deterministic-zip: true | |
| - name: Verify Setup | |
| run: | | |
| echo "::group::Verify Checkout Outputs" | |
| echo "Checkout Ref: ${{ steps.test-all.outputs.checkout-ref }}" | |
| echo "Checkout Commit: ${{ steps.test-all.outputs.checkout-commit }}" | |
| echo "::endgroup::" | |
| echo "::group::Verify Java Outputs" | |
| echo "Java Distribution: ${{ steps.test-all.outputs.java-distribution }}" | |
| echo "Java Version: ${{ steps.test-all.outputs.java-version }}" | |
| echo "Java Path: ${{ steps.test-all.outputs.java-path }}" | |
| echo "Java Cache Hit: ${{ steps.test-all.outputs.java-cache-hit }}" | |
| java -version | |
| echo "::endgroup::" | |
| echo "::group::Verify Gradle Outputs" | |
| echo "Gradle Version: ${{ steps.test-all.outputs.gradle-version }}" | |
| echo "Gradle Build Scan URL: ${{ steps.test-all.outputs.gradle-build-scan-url }}" | |
| echo "Gradle Dependency Graph File: ${{ steps.test-all.outputs.gradle-dependency-graph-file }}" | |
| gradle -v | |
| echo "::endgroup::" | |
| echo "::group::Verify Node.js Outputs" | |
| echo "Node.js Version: ${{ steps.test-all.outputs.node-version }}" | |
| echo "Node.js Cache Hit: ${{ steps.test-all.outputs.node-cache-hit }}" | |
| echo "Node.js Registry URL: ${{ steps.test-all.outputs.node-registry-url }}" | |
| node -v | |
| npm -v | |
| echo "::endgroup::" | |
| echo "::group::Verify Python Outputs" | |
| echo "Python Version: ${{ steps.test-all.outputs.python-version }}" | |
| echo "Python Path: ${{ steps.test-all.outputs.python-path }}" | |
| echo "Python Cache Hit: ${{ steps.test-all.outputs.python-cache-hit }}" | |
| python --version | |
| pip --version | |
| echo "::endgroup::" | |
| echo "::group::Verify Go Outputs" | |
| echo "Go Version: ${{ steps.test-all.outputs.go-version }}" | |
| echo "Go Cache Hit: ${{ steps.test-all.outputs.go-cache-hit }}" | |
| go version | |
| echo "::endgroup::" | |
| echo "::group::Verify Rust Outputs" | |
| echo "Rust Name: ${{ steps.test-all.outputs.rust-name }}" | |
| echo "Rust Cache Key: ${{ steps.test-all.outputs.rust-cachekey }}" | |
| rustc --version | |
| cargo --version | |
| echo "::endgroup::" | |
| echo "::group::Verify Swift Outputs" | |
| echo "Swift Version: ${{ steps.test-all.outputs.swift-version }}" | |
| echo "Swift Toolchain: ${{ steps.test-all.outputs.swift-toolchain }}" | |
| echo "Swift SDKs: ${{ steps.test-all.outputs.swift-sdks }}" | |
| swift --version | |
| echo "::endgroup::" | |
| echo "::group::Verify Gomplate Installation" | |
| gomplate --version | |
| echo "::endgroup::" | |
| echo "::group::Verify Task Installation" | |
| task --version | |
| echo "::endgroup::" | |
| echo "::group::Verify JQ Installation" | |
| jq --version | |
| echo "::endgroup::" | |
| echo "::group::Verify SemVer Installation" | |
| semver --version | |
| echo "::endgroup::" | |
| echo "::group::Verify deterministic-zip Installation" | |
| deterministic-zip --version | |
| echo "::endgroup::" | |
| test-egress-policy: | |
| name: Test Egress Policy Input | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Action with Explicit Egress Policy | |
| uses: ./ | |
| id: test-egress-policy | |
| with: | |
| egress-policy: audit | |
| test-checkout: | |
| name: Test Checkout Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Checkout Action | |
| uses: ./ | |
| id: test-checkout | |
| with: | |
| checkout: true | |
| checkout-ref: main | |
| checkout-submodules: false | |
| checkout-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Verify Checkout Outputs | |
| run: | | |
| echo "Checkout Ref: ${{ steps.test-checkout.outputs.checkout-ref }}" | |
| echo "Checkout Commit: ${{ steps.test-checkout.outputs.checkout-commit }}" | |
| git_value=$(git log -1 --oneline) | |
| echo "Git Commit: ${git_value}" | |
| shallow_value=$(git rev-parse --is-shallow-repository) | |
| echo "Is Shallow Repository: ${shallow_value}" | |
| test "${shallow_value}" = "true" | |
| test-sparse-checkout: | |
| name: Test Sparse Checkout Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Sparse Checkout Action | |
| uses: ./ | |
| id: test-sparse-checkout | |
| with: | |
| checkout: true | |
| checkout-ref: main | |
| checkout-token: ${{ secrets.GITHUB_TOKEN }} | |
| checkout-sparse: '.github' | |
| - name: Verify Sparse Checkout Outputs | |
| run: | | |
| echo "Checkout Ref: ${{ steps.test-sparse-checkout.outputs.checkout-ref }}" | |
| echo "Checkout Commit: ${{ steps.test-sparse-checkout.outputs.checkout-commit }}" | |
| sparse_list=$(git sparse-checkout list) | |
| echo "sparse list: ${sparse_list}" | |
| test "${sparse_list}" = ".github" | |
| test-setup-java: | |
| name: Test Setup Java Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Java Action | |
| uses: ./ | |
| id: test-setup-java | |
| with: | |
| setup-java: true | |
| java-distribution: 'temurin' | |
| java-version: '25' | |
| - name: Verify Java Outputs | |
| run: | | |
| echo "Java Distribution: ${{ steps.test-setup-java.outputs.java-distribution }}" | |
| echo "Java Version: ${{ steps.test-setup-java.outputs.java-version }}" | |
| echo "Java Path: ${{ steps.test-setup-java.outputs.java-path }}" | |
| echo "Java Cache Hit: ${{ steps.test-setup-java.outputs.java-cache-hit }}" | |
| java -version | |
| test-setup-gradle: | |
| name: Test Setup Gradle Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Gradle Action | |
| uses: ./ | |
| id: test-setup-gradle | |
| with: | |
| setup-gradle: true | |
| gradle-version: '9.2.1' | |
| - name: Verify Gradle Outputs | |
| run: | | |
| echo "Gradle Version: ${{ steps.test-setup-gradle.outputs.gradle-version }}" | |
| echo "Gradle Build Scan URL: ${{ steps.test-setup-gradle.outputs.gradle-build-scan-url }}" | |
| echo "Gradle Dependency Graph File: ${{ steps.test-setup-gradle.outputs.gradle-dependency-graph-file }}" | |
| gradle -v | |
| test-setup-testlens: | |
| name: Test Setup TestLens Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup TestLens Action | |
| uses: ./ | |
| id: test-setup-testlens | |
| with: | |
| setup-gradle: true # required to make 'setup-testlens' do something | |
| setup-testlens: true | |
| testlens-write-log-files: false | |
| - name: Verify TestLens | |
| run: | | |
| cat "$GRADLE_USER_HOME/init.d/testlens-init.gradle" | |
| test-setup-node: | |
| name: Test Setup Node.js Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Node.js Action | |
| uses: ./ | |
| id: test-setup-node | |
| with: | |
| setup-node: true | |
| node-version: '22' | |
| - name: Verify Node.js Outputs | |
| run: | | |
| echo "Node.js Version: ${{ steps.test-setup-node.outputs.node-version }}" | |
| echo "Node.js Cache Hit: ${{ steps.test-setup-node.outputs.node-cache-hit }}" | |
| node -v | |
| npm -v | |
| test-setup-python: | |
| name: Test Setup Python Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Python Action | |
| uses: ./ | |
| id: test-setup-python | |
| with: | |
| setup-python: true | |
| python-version: '3.13' | |
| - name: Verify Python Outputs | |
| run: | | |
| echo "Python Version: ${{ steps.test-setup-python.outputs.python-version }}" | |
| echo "Python Path: ${{ steps.test-setup-python.outputs.python-path }}" | |
| echo "Python Cache Hit: ${{ steps.test-setup-python.outputs.python-cache-hit }}" | |
| python --version | |
| pip --version | |
| test-setup-go: | |
| name: Test Setup Go Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Go Action | |
| uses: ./ | |
| id: test-setup-go | |
| with: | |
| setup-go: true | |
| go-version: '1.20' | |
| - name: Verify Go Outputs | |
| run: | | |
| echo "Go Version: ${{ steps.test-setup-go.outputs.go-version }}" | |
| echo "Go Cache Hit: ${{ steps.test-setup-go.outputs.go-cache-hit }}" | |
| go version | |
| test-setup-rust: | |
| name: Test Setup Rust Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Rust Action | |
| uses: ./ | |
| id: test-setup-rust | |
| with: | |
| setup-rust: true | |
| rust-version: '1.70.0' | |
| - name: Verify Rust Outputs | |
| run: | | |
| echo "Rust Name: ${{ steps.test-setup-rust.outputs.rust-name }}" | |
| echo "Rust Cache Key: ${{ steps.test-setup-rust.outputs.rust-cachekey }}" | |
| rustc --version | |
| cargo --version | |
| test-setup-swift: | |
| name: Test Setup Swift Action | |
| runs-on: macos-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Swift Action | |
| uses: ./ | |
| id: test-setup-swift | |
| with: | |
| setup-swift: true | |
| swift-version: '5.7' | |
| - name: Verify Swift Outputs | |
| run: | | |
| echo "Swift Version: ${{ steps.test-setup-swift.outputs.swift-version }}" | |
| echo "Swift Toolchain: ${{ steps.test-setup-swift.outputs.swift-toolchain }}" | |
| echo "Swift SDKs: ${{ steps.test-setup-swift.outputs.swift-sdks }}" | |
| swift --version | |
| test-setup-task: | |
| name: Test Setup Task Action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Task Action | |
| uses: ./ | |
| id: test-setup-task | |
| with: | |
| checkout-token: ${{ secrets.GITHUB_TOKEN }} | |
| setup-task: true | |
| task-version: '3.50.0' | |
| task-retries: '3' | |
| - name: Verify Task Installation | |
| run: | | |
| task --version | |
| test-setup-gomplate: | |
| name: Test Setup Gomplate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Gomplate Action | |
| uses: ./ | |
| with: | |
| setup-gomplate: true | |
| - name: Verify Gomplate Installation | |
| run: | | |
| gomplate --version | |
| test-setup-gomplate-custom-version: | |
| name: Test Setup Gomplate (custom version) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Gomplate Action (non-default version) | |
| uses: ./ | |
| with: | |
| setup-gomplate: true | |
| gomplate-version: v4.3.3 | |
| - name: Verify Gomplate Version Matches Input | |
| env: | |
| EXPECTED_VERSION: 4.3.3 | |
| run: | | |
| ACTUAL="$(gomplate --version)" | |
| ESCAPED_EXPECTED_VERSION="$(printf '%s\n' "${EXPECTED_VERSION}" | sed 's/[][(){}.^$*+?|\\]/\\&/g')" | |
| echo "gomplate reported: ${ACTUAL}" | |
| if ! echo "${ACTUAL}" | grep -qE "(^|[^0-9.])${ESCAPED_EXPECTED_VERSION}([^0-9.]|$)"; then | |
| echo "Expected gomplate version ${EXPECTED_VERSION}, got: ${ACTUAL}" | |
| exit 1 | |
| fi | |
| test-setup-jq: | |
| name: Test Setup JQ | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup JQ Action | |
| uses: ./ | |
| with: | |
| setup-jq: true | |
| - name: Verify JQ Installation | |
| run: | | |
| jq --version | |
| test-setup-jq-custom-version: | |
| name: Test Setup JQ (custom version) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup JQ Action (non-default version) | |
| uses: ./ | |
| with: | |
| setup-jq: true | |
| jq-version: 1.8.0 | |
| - name: Verify JQ Version Matches Input | |
| env: | |
| EXPECTED_VERSION: 1.8.0 | |
| run: | | |
| ACTUAL="$(jq --version)" | |
| ESCAPED_EXPECTED_VERSION="$(printf '%s\n' "${EXPECTED_VERSION}" | sed 's/[][(){}.^$*+?|\\]/\\&/g')" | |
| echo "jq reported: ${ACTUAL}" | |
| if ! echo "${ACTUAL}" | grep -qE "(^jq-|[^0-9.])${ESCAPED_EXPECTED_VERSION}([^0-9.]|$)"; then | |
| echo "Expected jq version ${EXPECTED_VERSION}, got: ${ACTUAL}" | |
| exit 1 | |
| fi | |
| test-setup-semver: | |
| name: Test Setup SemVer Tools | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup Semver | |
| id: test-setup-semver | |
| uses: ./ | |
| with: | |
| setup-semver: true | |
| - name: Verify SemVer Installation | |
| run: | | |
| INSTALLED_VERSION="$(semver --version)" | |
| OUTPUT_VERSION="${{ steps.test-setup-semver.outputs.semver-version }}" | |
| echo "semver reported: ${INSTALLED_VERSION}" | |
| echo "semver output: ${OUTPUT_VERSION}" | |
| if [[ "${INSTALLED_VERSION}" != "${OUTPUT_VERSION}" ]]; then | |
| echo "Expected semver version ${OUTPUT_VERSION}, got: ${INSTALLED_VERSION}" | |
| exit 1 | |
| fi | |
| test-setup-deterministic-zip: | |
| name: Test Setup deterministic-zip | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| id: harden-runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Run Setup deterministic-zip Action | |
| uses: ./ | |
| with: | |
| setup-deterministic-zip: true | |
| - name: Verify deterministic-zip Installation | |
| run: | | |
| deterministic-zip --version |