From 2fffad315319f278a64ba2e94505768bd9e2a633 Mon Sep 17 00:00:00 2001 From: Ludea Date: Mon, 10 Apr 2023 12:44:10 +0200 Subject: [PATCH 01/19] Download binary with right arch (#118) * Url based on arch Signed-off-by: Ludea * arm64 instead of aarch64 Signed-off-by: Ludea * Default to amd64 Signed-off-by: Ludea --------- Signed-off-by: Ludea --- ct.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ct.sh b/ct.sh index 151baa3..b76da48 100755 --- a/ct.sh +++ b/ct.sh @@ -80,7 +80,11 @@ install_chart_testing() { fi local arch - arch=$(uname -m) + if [[ $(uname -m) == "aarch64" ]]; then + arch=arm64 + else + arch=amd64 + fi local cache_dir="$RUNNER_TOOL_CACHE/ct/$version/$arch" local venv_dir="$cache_dir/venv" @@ -88,10 +92,10 @@ install_chart_testing() { mkdir -p "$cache_dir" echo "Installing chart-testing ${version}..." - CT_CERT=https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_amd64.tar.gz.pem - CT_SIG=https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_amd64.tar.gz.sig + CT_CERT=https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_$arch.tar.gz.pem + CT_SIG=https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_$arch.tar.gz.sig - curl --retry 5 --retry-delay 1 -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_amd64.tar.gz" + curl --retry 5 --retry-delay 1 -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_$arch.tar.gz" cosign verify-blob --certificate $CT_CERT --signature $CT_SIG \ --certificate-identity "https://github.com/helm/chart-testing/.github/workflows/release.yaml@refs/heads/main" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ct.tar.gz From a629e844a9d081a827cf96486ef29f60afef87e4 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 11 Jul 2023 14:19:04 +0200 Subject: [PATCH 02/19] Bump ct and cleanup script (#124) * add dependabot config Signed-off-by: cpanato * bump ct to release v3.9.0 and make the input variables similar to each other Signed-off-by: cpanato --------- Signed-off-by: cpanato --- .github/dependabot.yml | 8 +++++ .github/workflows/test-action.yml | 7 +++-- README.md | 8 ++--- action.yml | 4 +-- ct.sh | 52 +++++++++++++++---------------- 5 files changed, 44 insertions(+), 35 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..93353ed --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 10 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 1f88377..b3aad88 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -1,6 +1,7 @@ name: test-chart-testing-action -on: [pull_request] +on: + pull_request: jobs: test_ct_action: @@ -16,8 +17,8 @@ jobs: ct version CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) - if [[ $ACTUAL_VERSION != 'v3.8.0' ]]; then - echo 'should be v3.8.0' + if [[ $ACTUAL_VERSION != 'v3.9.0' ]]; then + echo 'should be v3.9.0' exit 1 else exit 0 diff --git a/README.md b/README.md index 94f0587..87da19f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/ For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input) -- `version`: The chart-testing version to install (default: `v3.8.0`) +- `version`: The chart-testing version to install (default: `3.9.0`) - `yamllint_version`: The chart-testing version to install (default: `1.27.1`) - `yamale_version`: The chart-testing version to install (default: `3.0.4`) @@ -44,7 +44,7 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v3 with: - version: v3.11.2 + version: v3.12.1 - uses: actions/setup-python@v4 with: @@ -52,7 +52,7 @@ jobs: check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.4.0 + uses: helm/chart-testing-action@v2.5.0 - name: Run chart-testing (list-changed) id: list-changed @@ -68,7 +68,7 @@ jobs: - name: Create kind cluster if: steps.list-changed.outputs.changed == 'true' - uses: helm/kind-action@v1.4.0 + uses: helm/kind-action@v1.7.0 - name: Run chart-testing (install) if: steps.list-changed.outputs.changed == 'true' diff --git a/action.yml b/action.yml index 980bd1e..77fa9e6 100644 --- a/action.yml +++ b/action.yml @@ -6,9 +6,9 @@ branding: icon: anchor inputs: version: - description: "The chart-testing version to install (default: v3.8.0)" + description: "The chart-testing version to install (default: 3.9.0)" required: false - default: v3.8.0 + default: '3.9.0' yamllint_version: description: "The yamllint version to install (default: 1.27.1)" required: false diff --git a/ct.sh b/ct.sh index b76da48..9f1dad6 100755 --- a/ct.sh +++ b/ct.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_CHART_TESTING_VERSION=v3.8.0 +DEFAULT_CHART_TESTING_VERSION=3.9.0 DEFAULT_YAMLLINT_VERSION=1.27.1 DEFAULT_YAMALE_VERSION=3.0.4 @@ -13,14 +13,14 @@ cat << EOF Usage: $(basename "$0") -h, --help Display help - -v, --version The chart-testing version to use (default: $DEFAULT_CHART_TESTING_VERSION)" + -v, --version The chart-testing version to use (default: ${DEFAULT_CHART_TESTING_VERSION})" EOF } main() { - local version="$DEFAULT_CHART_TESTING_VERSION" - local yamllint_version="$DEFAULT_YAMLLINT_VERSION" - local yamale_version="$DEFAULT_YAMALE_VERSION" + local version="${DEFAULT_CHART_TESTING_VERSION}" + local yamllint_version="${DEFAULT_YAMLLINT_VERSION}" + local yamale_version="${DEFAULT_YAMALE_VERSION}" parse_command_line "$@" @@ -36,7 +36,7 @@ parse_command_line() { ;; -v|--version) if [[ -n "${2:-}" ]]; then - version="$2" + version="${2#v}" shift else echo "ERROR: '-v|--version' cannot be empty." >&2 @@ -74,8 +74,8 @@ parse_command_line() { } install_chart_testing() { - if [[ ! -d "$RUNNER_TOOL_CACHE" ]]; then - echo "Cache directory '$RUNNER_TOOL_CACHE' does not exist" >&2 + if [[ ! -d "${RUNNER_TOOL_CACHE}" ]]; then + echo "Cache directory '${RUNNER_TOOL_CACHE}' does not exist" >&2 exit 1 fi @@ -85,35 +85,35 @@ install_chart_testing() { else arch=amd64 fi - local cache_dir="$RUNNER_TOOL_CACHE/ct/$version/$arch" - local venv_dir="$cache_dir/venv" + local cache_dir="${RUNNER_TOOL_CACHE}/ct/${version}/${arch}" + local venv_dir="${cache_dir}/venv" - if [[ ! -d "$cache_dir" ]]; then - mkdir -p "$cache_dir" + if [[ ! -d "${cache_dir}" ]]; then + mkdir -p "${cache_dir}" - echo "Installing chart-testing ${version}..." - CT_CERT=https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_$arch.tar.gz.pem - CT_SIG=https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_$arch.tar.gz.sig + echo "Installing chart-testing v${version}..." + CT_CERT=https://github.com/helm/chart-testing/releases/download/v$version/chart-testing_${version#v}_linux_$arch.tar.gz.pem + CT_SIG=https://github.com/helm/chart-testing/releases/download/v$version/chart-testing_${version#v}_linux_$arch.tar.gz.sig - curl --retry 5 --retry-delay 1 -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/$version/chart-testing_${version#v}_linux_$arch.tar.gz" + curl --retry 5 --retry-delay 1 -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/v$version/chart-testing_${version#v}_linux_$arch.tar.gz" cosign verify-blob --certificate $CT_CERT --signature $CT_SIG \ --certificate-identity "https://github.com/helm/chart-testing/.github/workflows/release.yaml@refs/heads/main" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ct.tar.gz retVal=$? - if [[ "$retVal" -ne 0 ]]; then - log_error "Unable to validate chart-testing version: ${version}" + if [[ "${retVal}" -ne 0 ]]; then + log_error "Unable to validate chart-testing version: v${version}" exit 1 fi - tar -xzf ct.tar.gz -C "$cache_dir" + tar -xzf ct.tar.gz -C "${cache_dir}" rm -f ct.tar.gz echo 'Creating virtual Python environment...' - python3 -m venv "$venv_dir" + python3 -m venv "${venv_dir}" echo 'Activating virtual environment...' # shellcheck disable=SC1090 - source "$venv_dir/bin/activate" + source "${venv_dir}/bin/activate" echo 'Installing yamllint...' pip3 install "yamllint==${yamllint_version}" @@ -124,16 +124,16 @@ install_chart_testing() { # https://github.com/helm/chart-testing-action/issues/62 echo 'Adding ct directory to PATH...' - echo "$cache_dir" >> "$GITHUB_PATH" + echo "${cache_dir}" >> "${GITHUB_PATH}" echo 'Setting CT_CONFIG_DIR...' - echo "CT_CONFIG_DIR=$cache_dir/etc" >> "$GITHUB_ENV" + echo "CT_CONFIG_DIR=${cache_dir}/etc" >> "${GITHUB_ENV}" echo 'Configuring environment variables for virtual environment for subsequent workflow steps...' - echo "VIRTUAL_ENV=$venv_dir" >> "$GITHUB_ENV" - echo "$venv_dir/bin" >> "$GITHUB_PATH" + echo "VIRTUAL_ENV=${venv_dir}" >> "${GITHUB_ENV}" + echo "${venv_dir}/bin" >> "${GITHUB_PATH}" - "$cache_dir/ct" version + "${cache_dir}/ct" version } main "$@" From 90e5bd42d6fa7a91ca2945994517359c92b53de2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:21:05 +0000 Subject: [PATCH 03/19] Bump sigstore/cosign-installer from c3667d99424e7e6047999fb6246c0da843953c65 to 6e04d228eb30da1757ee4e1dd75a0ec73a653e06 (#125) * Bump sigstore/cosign-installer Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from c3667d99424e7e6047999fb6246c0da843953c65 to 6e04d228eb30da1757ee4e1dd75a0ec73a653e06. - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/c3667d99424e7e6047999fb6246c0da843953c65...6e04d228eb30da1757ee4e1dd75a0ec73a653e06) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Update action.yml Signed-off-by: Carlos Tadeu Panato Junior --------- Signed-off-by: dependabot[bot] Signed-off-by: Carlos Tadeu Panato Junior Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Tadeu Panato Junior --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 77fa9e6..3db2af8 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: runs: using: composite steps: - - uses: sigstore/cosign-installer@c3667d99424e7e6047999fb6246c0da843953c65 # v3.0.1 + - uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3.1.1 - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ From 271b78b2b8f4b27ee1d5f6f28eee368c471afb26 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 09:22:37 +0200 Subject: [PATCH 04/19] Bump sigstore/cosign-installer from 3.1.1 to 3.1.2 (#127) Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/6e04d228eb30da1757ee4e1dd75a0ec73a653e06...11086d25041f77fe8fe7b9ea4e48e3b9192b8f19) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3db2af8..6324f52 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: runs: using: composite steps: - - uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3.1.1 + - uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2 - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ From cb49023b9227b1097e5eddd8824f48bdea11b1aa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:44:53 +0200 Subject: [PATCH 05/19] Bump actions/checkout from 3 to 4 (#128) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test-action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index b3aad88..41020b7 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -9,7 +9,7 @@ jobs: name: Install chart-testing and test presence in path steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install chart-testing uses: ./ - name: Check install! @@ -38,7 +38,7 @@ jobs: name: Install Custom chart-testing and test presence in path steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install chart-testing uses: ./ with: From 649a6365f8d0d1e620922904077647d7544d1631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 31 Oct 2023 13:23:28 +0100 Subject: [PATCH 06/19] docs: bump helm/kind-action version (#122) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: bump helm/kind-action version Signed-off-by: Kévin Dunglas * Update README.md Co-authored-by: Carlos Tadeu Panato Junior Signed-off-by: Kévin Dunglas --------- Signed-off-by: Kévin Dunglas Co-authored-by: Carlos Tadeu Panato Junior --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87da19f..6381ea5 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.10' check-latest: true - name: Set up chart-testing @@ -68,7 +68,7 @@ jobs: - name: Create kind cluster if: steps.list-changed.outputs.changed == 'true' - uses: helm/kind-action@v1.7.0 + uses: helm/kind-action@v1.8.0 - name: Run chart-testing (install) if: steps.list-changed.outputs.changed == 'true' From b43128a8b25298e1e7b043b78ea6613844e079b1 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 31 Oct 2023 15:42:30 +0100 Subject: [PATCH 07/19] bump ct to v3.10.0 (#134) Signed-off-by: cpanato --- .github/workflows/test-action.yml | 10 +++++----- README.md | 2 +- action.yml | 4 ++-- ct.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 41020b7..4fe55a9 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -17,8 +17,8 @@ jobs: ct version CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) - if [[ $ACTUAL_VERSION != 'v3.9.0' ]]; then - echo 'should be v3.9.0' + if [[ $ACTUAL_VERSION != 'v3.10.0' ]]; then + echo 'should be v3.10.0' exit 1 else exit 0 @@ -42,7 +42,7 @@ jobs: - name: Install chart-testing uses: ./ with: - version: 'v3.7.1' + version: 'v3.8.0' yamllint_version: '1.27.1' yamale_version: '3.0.4' - name: Check install! @@ -50,8 +50,8 @@ jobs: ct version CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) - if [[ $ACTUAL_VERSION != 'v3.7.1' ]]; then - echo 'should be v3.7.1' + if [[ $ACTUAL_VERSION != 'v3.8.0' ]]; then + echo 'should be v3.8.0' exit 1 else exit 0 diff --git a/README.md b/README.md index 6381ea5..55d92f9 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ jobs: check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.5.0 + uses: helm/chart-testing-action@v2.6.0 - name: Run chart-testing (list-changed) id: list-changed diff --git a/action.yml b/action.yml index 6324f52..8f08990 100644 --- a/action.yml +++ b/action.yml @@ -6,9 +6,9 @@ branding: icon: anchor inputs: version: - description: "The chart-testing version to install (default: 3.9.0)" + description: "The chart-testing version to install (default: 3.10.0)" required: false - default: '3.9.0' + default: '3.10.0' yamllint_version: description: "The yamllint version to install (default: 1.27.1)" required: false diff --git a/ct.sh b/ct.sh index 9f1dad6..4432ed9 100755 --- a/ct.sh +++ b/ct.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_CHART_TESTING_VERSION=3.9.0 +DEFAULT_CHART_TESTING_VERSION=3.10.0 DEFAULT_YAMLLINT_VERSION=1.27.1 DEFAULT_YAMALE_VERSION=3.0.4 From e6669bcd63d7cb57cb4380c33043eebe5d111992 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Fri, 3 Nov 2023 13:52:33 +0100 Subject: [PATCH 08/19] bump ct to v3.10.1 (#136) Signed-off-by: cpanato --- .github/dependabot.yml | 5 +++++ .github/workflows/test-action.yml | 4 ++-- action.yml | 6 +++--- ct.sh | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 93353ed..6c14dcd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,8 @@ updates: schedule: interval: "daily" open-pull-requests-limit: 10 + groups: + actions: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 4fe55a9..dbb9cb3 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -17,8 +17,8 @@ jobs: ct version CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) - if [[ $ACTUAL_VERSION != 'v3.10.0' ]]; then - echo 'should be v3.10.0' + if [[ $ACTUAL_VERSION != 'v3.10.1' ]]; then + echo 'should be v3.10.1' exit 1 else exit 0 diff --git a/action.yml b/action.yml index 8f08990..9147d0e 100644 --- a/action.yml +++ b/action.yml @@ -6,15 +6,15 @@ branding: icon: anchor inputs: version: - description: "The chart-testing version to install (default: 3.10.0)" + description: "The chart-testing version to install (default: 3.10.1)" required: false - default: '3.10.0' + default: '3.10.1' yamllint_version: description: "The yamllint version to install (default: 1.27.1)" required: false default: '1.27.1' yamale_version: - description: "The yamale version to install (default: 3.0.4)" + description: "The yamale version to install (default: 3.0.4)" required: false default: '3.0.4' runs: diff --git a/ct.sh b/ct.sh index 4432ed9..4394de4 100755 --- a/ct.sh +++ b/ct.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_CHART_TESTING_VERSION=3.10.0 +DEFAULT_CHART_TESTING_VERSION=3.10.1 DEFAULT_YAMLLINT_VERSION=1.27.1 DEFAULT_YAMALE_VERSION=3.0.4 From 86b540ddcecb3cc009fa2bc0f44fa5b33e9751a2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:55:33 +0100 Subject: [PATCH 09/19] Bump the actions group with 1 update (#137) Bumps the actions group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer). - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/11086d25041f77fe8fe7b9ea4e48e3b9192b8f19...1fc5bd396d372bee37d608f955b336615edf79c8) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9147d0e..259fe47 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: runs: using: composite steps: - - uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2 + - uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # v3.2.0 - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ From df9dfa7259f5d09615a31c4aae53338e2c621f8f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 09:23:24 +0100 Subject: [PATCH 10/19] Bump the actions group with 1 update (#138) Bumps the actions group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer). - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/1fc5bd396d372bee37d608f955b336615edf79c8...9614fae9e5c5eddabb09f90a270fcb487c9f7149) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 259fe47..b4d131b 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: runs: using: composite steps: - - uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # v3.2.0 + - uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0 - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ From dbd7bf1354f0f25564f602276d44cb17913e0f9f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Apr 2024 08:42:24 +0200 Subject: [PATCH 11/19] Bump sigstore/cosign-installer from 3.3.0 to 3.5.0 in the actions group (#143) Bumps the actions group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer). Updates `sigstore/cosign-installer` from 3.3.0 to 3.5.0 - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/9614fae9e5c5eddabb09f90a270fcb487c9f7149...59acb6260d9c0ba8f4a2f9d9b48431a222b68e20) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b4d131b..a7efee4 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: runs: using: composite steps: - - uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0 + - uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0 - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ From af96d800b1be6aab4e5770afe641ba93d52e3c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Robles=20Mart=C3=ADn?= Date: Sun, 21 Apr 2024 15:14:03 +0200 Subject: [PATCH 12/19] docs: update all version references to latest versions (#141) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: update all version references to latest versions Signed-off-by: Francisco Robles Martín * Update README.md Co-authored-by: Thiago Perrotta Signed-off-by: Francisco Robles Martín --------- Signed-off-by: Francisco Robles Martín Co-authored-by: Thiago Perrotta --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 55d92f9..60c27ad 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/ For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input) -- `version`: The chart-testing version to install (default: `3.9.0`) -- `yamllint_version`: The chart-testing version to install (default: `1.27.1`) -- `yamale_version`: The chart-testing version to install (default: `3.0.4`) +- `version`: The chart-testing version to install (default: `3.10.1`) +- `yamllint_version`: The `yamllint` version to install (default: `1.27.1`) +- `yamale_version`: The `yamale` version to install (default: `3.0.4`) ### Example Workflow @@ -44,15 +44,15 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v3 with: - version: v3.12.1 + version: v3.14.0 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.6.0 + uses: helm/chart-testing-action@v2.6.1 - name: Run chart-testing (list-changed) id: list-changed From 16c6be374ac50a5ef2faa6a755d2fad76a94c9fd Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Sun, 28 Apr 2024 12:10:39 +0200 Subject: [PATCH 13/19] update ct to v3.11.0 / yamlint to 1.33.0 / yamale to 4.0.4 / add e2e test (#144) * update ct to v3.11.0 / yamlint to 1.33.0 / yamale to 4.0.4 Signed-off-by: cpanato * add e2e test Signed-off-by: cpanato --------- Signed-off-by: cpanato --- .github/workflows/test-action.yml | 54 +++++++++++++++++-- README.md | 18 +++---- action.yml | 6 +-- ct.sh | 6 +-- testdata/simple-deployment/Chart.yaml | 8 +++ testdata/simple-deployment/README.md | 4 ++ .../simple-deployment/templates/_helpers.tpl | 32 +++++++++++ .../templates/deployment.yaml | 29 ++++++++++ testdata/simple-deployment/values.yaml | 11 ++++ 9 files changed, 149 insertions(+), 19 deletions(-) create mode 100644 testdata/simple-deployment/Chart.yaml create mode 100644 testdata/simple-deployment/README.md create mode 100644 testdata/simple-deployment/templates/_helpers.tpl create mode 100644 testdata/simple-deployment/templates/deployment.yaml create mode 100644 testdata/simple-deployment/values.yaml diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index dbb9cb3..15a79ee 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -9,7 +9,7 @@ jobs: name: Install chart-testing and test presence in path steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Install chart-testing uses: ./ - name: Check install! @@ -17,8 +17,8 @@ jobs: ct version CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) - if [[ $ACTUAL_VERSION != 'v3.10.1' ]]; then - echo 'should be v3.10.1' + if [[ $ACTUAL_VERSION != 'v3.11.0' ]]; then + echo 'should be v3.11.0' exit 1 else exit 0 @@ -38,7 +38,7 @@ jobs: name: Install Custom chart-testing and test presence in path steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Install chart-testing uses: ./ with: @@ -65,3 +65,49 @@ jobs: else exit 0 fi + + test_ct_action_with_helm: + runs-on: ubuntu-latest + + name: run action to test a helm chart + steps: + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + with: + version: v3.14.4 + + - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 + with: + python-version: '3.x' + check-latest: true + + - name: Install chart-testing + uses: ./ + + - run: | + sed -i "s/version: .*/version: 2.0.0/" testdata/simple-deployment/Chart.yaml + cat testdata/simple-deployment/Chart.yaml + + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --chart-dirs=testdata --target-branch ${{ github.event.repository.default_branch }}) + if [[ -n "$changed" ]]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + fi + + - name: Run chart-testing (lint) + if: steps.list-changed.outputs.changed == 'true' + run: ct lint --chart-dirs=testdata --target-branch ${{ github.event.repository.default_branch }} + + - name: Create kind cluster + if: steps.list-changed.outputs.changed == 'true' + uses: helm/kind-action@v1.10.0 + + - name: Run chart-testing (install) + if: steps.list-changed.outputs.changed == 'true' + run: ct install --chart-dirs=testdata --target-branch ${{ github.event.repository.default_branch }} diff --git a/README.md b/README.md index 60c27ad..c9f8b80 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/ For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input) -- `version`: The chart-testing version to install (default: `3.10.1`) -- `yamllint_version`: The `yamllint` version to install (default: `1.27.1`) -- `yamale_version`: The `yamale` version to install (default: `3.0.4`) +- `version`: The chart-testing version to install (default: `3.11.0`) +- `yamllint_version`: The `yamllint` version to install (default: `1.33.0`) +- `yamale_version`: The `yamale` version to install (default: `4.0.4`) ### Example Workflow @@ -42,17 +42,17 @@ jobs: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@v3 + uses: azure/setup-helm@v4.2.0 with: - version: v3.14.0 + version: v3.14.4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.x' check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.6.1 + uses: helm/chart-testing-action@v2.7.0 - name: Run chart-testing (list-changed) id: list-changed @@ -68,7 +68,7 @@ jobs: - name: Create kind cluster if: steps.list-changed.outputs.changed == 'true' - uses: helm/kind-action@v1.8.0 + uses: helm/kind-action@v1.10.0 - name: Run chart-testing (install) if: steps.list-changed.outputs.changed == 'true' diff --git a/action.yml b/action.yml index a7efee4..315f15a 100644 --- a/action.yml +++ b/action.yml @@ -8,15 +8,15 @@ inputs: version: description: "The chart-testing version to install (default: 3.10.1)" required: false - default: '3.10.1' + default: '3.11.0' yamllint_version: description: "The yamllint version to install (default: 1.27.1)" required: false - default: '1.27.1' + default: '1.33.0' yamale_version: description: "The yamale version to install (default: 3.0.4)" required: false - default: '3.0.4' + default: '4.0.4' runs: using: composite steps: diff --git a/ct.sh b/ct.sh index 4394de4..5e0f87d 100755 --- a/ct.sh +++ b/ct.sh @@ -4,9 +4,9 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_CHART_TESTING_VERSION=3.10.1 -DEFAULT_YAMLLINT_VERSION=1.27.1 -DEFAULT_YAMALE_VERSION=3.0.4 +DEFAULT_CHART_TESTING_VERSION=3.11.0 +DEFAULT_YAMLLINT_VERSION=1.33.0 +DEFAULT_YAMALE_VERSION=4.0.4 show_help() { cat << EOF diff --git a/testdata/simple-deployment/Chart.yaml b/testdata/simple-deployment/Chart.yaml new file mode 100644 index 0000000..8ac9244 --- /dev/null +++ b/testdata/simple-deployment/Chart.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +appVersion: "1.0" +description: A Helm chart for Kubernetes +name: nginx +version: 0.1.0 +maintainers: + - name: cpanato + - name: davidkarlsen diff --git a/testdata/simple-deployment/README.md b/testdata/simple-deployment/README.md new file mode 100644 index 0000000..280f67f --- /dev/null +++ b/testdata/simple-deployment/README.md @@ -0,0 +1,4 @@ +Simple chart with a Deployment. + +The integration test will install first simple-deployment and then try to upgrade +to simple-deployment-different-selector failing as expected diff --git a/testdata/simple-deployment/templates/_helpers.tpl b/testdata/simple-deployment/templates/_helpers.tpl new file mode 100644 index 0000000..165d01e --- /dev/null +++ b/testdata/simple-deployment/templates/_helpers.tpl @@ -0,0 +1,32 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "nginx.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "nginx.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "nginx.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} diff --git a/testdata/simple-deployment/templates/deployment.yaml b/testdata/simple-deployment/templates/deployment.yaml new file mode 100644 index 0000000..ac64e0d --- /dev/null +++ b/testdata/simple-deployment/templates/deployment.yaml @@ -0,0 +1,29 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "nginx.fullname" . }} + labels: + app.kubernetes.io/name: {{ include "nginx.name" . }} + helm.sh/chart: {{ include "nginx.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: {{ include "nginx.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "nginx.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + containers: + - name: {{ .Chart.Name }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 80 + protocol: TCP diff --git a/testdata/simple-deployment/values.yaml b/testdata/simple-deployment/values.yaml new file mode 100644 index 0000000..cefd3a0 --- /dev/null +++ b/testdata/simple-deployment/values.yaml @@ -0,0 +1,11 @@ +# Default values for nginx. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +image: + repository: nginx + tag: stable + pullPolicy: IfNotPresent + +nameOverride: "" +fullnameOverride: "" From 4f62db170e3aa295575ba779f7141287841da474 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 10:03:11 +0200 Subject: [PATCH 14/19] Bump actions/checkout from 4.1.4 to 4.1.5 in the actions group (#147) Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.1.4 to 4.1.5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/0ad4b8fadaa221de15dcec353f45205ec38ea70b...44c2b7a8a4ea60a981eaca3cf939b5f4305c123b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test-action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 15a79ee..d0da246 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -9,7 +9,7 @@ jobs: name: Install chart-testing and test presence in path steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - name: Install chart-testing uses: ./ - name: Check install! @@ -38,7 +38,7 @@ jobs: name: Install Custom chart-testing and test presence in path steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - name: Install chart-testing uses: ./ with: @@ -71,7 +71,7 @@ jobs: name: run action to test a helm chart steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 with: fetch-depth: 0 From 9c98eaab2efcdc7233e9c49d05cb68d0bec56aba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:19:07 +0200 Subject: [PATCH 15/19] Bump actions/checkout in the actions group across 1 directory (#152) Bumps the actions group with 1 update in the / directory: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.1.5 to 4.1.7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/44c2b7a8a4ea60a981eaca3cf939b5f4305c123b...692973e3d937129bcbf40652eb9f2f61becf3332) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test-action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index d0da246..a6d24fd 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -9,7 +9,7 @@ jobs: name: Install chart-testing and test presence in path steps: - - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Install chart-testing uses: ./ - name: Check install! @@ -38,7 +38,7 @@ jobs: name: Install Custom chart-testing and test presence in path steps: - - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Install chart-testing uses: ./ with: @@ -71,7 +71,7 @@ jobs: name: run action to test a helm chart steps: - - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 From 5aa1c68405a43a57240a9b2869379324b2bec0fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:32:11 +0200 Subject: [PATCH 16/19] Bump actions/setup-python from 5.1.0 to 5.1.1 in the actions group (#154) Bumps the actions group with 1 update: [actions/setup-python](https://github.com/actions/setup-python). Updates `actions/setup-python` from 5.1.0 to 5.1.1 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/82c7e631bb3cdc910f68e0081d67478d79c6982d...39cd14951b08e74b54015e9e001cdefcf80e669f) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index a6d24fd..01d0584 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -80,7 +80,7 @@ jobs: with: version: v3.14.4 - - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 + - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 with: python-version: '3.x' check-latest: true From 66b7521f19a51e5cc1bbfa81f216ec7b1fd5198c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 11:28:03 +0100 Subject: [PATCH 17/19] Bump the actions group across 1 directory with 3 updates (#164) Bumps the actions group with 3 updates in the / directory: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer), [actions/checkout](https://github.com/actions/checkout) and [actions/setup-python](https://github.com/actions/setup-python). Updates `sigstore/cosign-installer` from 3.5.0 to 3.7.0 - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/59acb6260d9c0ba8f4a2f9d9b48431a222b68e20...dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da) Updates `actions/checkout` from 4.1.7 to 4.2.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/692973e3d937129bcbf40652eb9f2f61becf3332...11bd71901bbe5b1630ceea73d27597364c9af683) Updates `actions/setup-python` from 5.1.1 to 5.3.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/39cd14951b08e74b54015e9e001cdefcf80e669f...0b93645e9fea7318ecaed2b359559ac225c90a2b) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test-action.yml | 8 ++++---- action.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 01d0584..27d691b 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -9,7 +9,7 @@ jobs: name: Install chart-testing and test presence in path steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Install chart-testing uses: ./ - name: Check install! @@ -38,7 +38,7 @@ jobs: name: Install Custom chart-testing and test presence in path steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Install chart-testing uses: ./ with: @@ -71,7 +71,7 @@ jobs: name: run action to test a helm chart steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 @@ -80,7 +80,7 @@ jobs: with: version: v3.14.4 - - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 + - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version: '3.x' check-latest: true diff --git a/action.yml b/action.yml index 315f15a..49cafa5 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ inputs: runs: using: composite steps: - - uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0 + - uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \ From ef3072d53ad1414685abf498585614aca7eb78ff Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Mon, 20 Jan 2025 11:57:42 +0100 Subject: [PATCH 18/19] use ct 3.12.0 as default (#165) Signed-off-by: cpanato --- .github/workflows/test-action.yml | 4 ++-- README.md | 10 +++++----- action.yml | 2 +- ct.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 27d691b..9290efb 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -17,8 +17,8 @@ jobs: ct version CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) - if [[ $ACTUAL_VERSION != 'v3.11.0' ]]; then - echo 'should be v3.11.0' + if [[ $ACTUAL_VERSION != 'v3.12.0' ]]; then + echo 'should be v3.12.0' exit 1 else exit 0 diff --git a/README.md b/README.md index c9f8b80..6ba1708 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ A GitHub Action for installing the [helm/chart-testing](https://github.com/helm/ For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input) -- `version`: The chart-testing version to install (default: `3.11.0`) +- `version`: The chart-testing version to install (default: `3.12.0`) - `yamllint_version`: The `yamllint` version to install (default: `1.33.0`) - `yamale_version`: The `yamale` version to install (default: `4.0.4`) @@ -44,15 +44,15 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v4.2.0 with: - version: v3.14.4 + version: v3.17.0 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5.3.0 with: python-version: '3.x' check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.7.0 + uses: helm/chart-testing-action@v2.8.0 - name: Run chart-testing (list-changed) id: list-changed @@ -68,7 +68,7 @@ jobs: - name: Create kind cluster if: steps.list-changed.outputs.changed == 'true' - uses: helm/kind-action@v1.10.0 + uses: helm/kind-action@v1.12.0 - name: Run chart-testing (install) if: steps.list-changed.outputs.changed == 'true' diff --git a/action.yml b/action.yml index 49cafa5..e1edb1d 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: version: description: "The chart-testing version to install (default: 3.10.1)" required: false - default: '3.11.0' + default: '3.12.0' yamllint_version: description: "The yamllint version to install (default: 1.27.1)" required: false diff --git a/ct.sh b/ct.sh index 5e0f87d..32523a7 100755 --- a/ct.sh +++ b/ct.sh @@ -4,7 +4,7 @@ set -o errexit set -o nounset set -o pipefail -DEFAULT_CHART_TESTING_VERSION=3.11.0 +DEFAULT_CHART_TESTING_VERSION=3.12.0 DEFAULT_YAMLLINT_VERSION=1.33.0 DEFAULT_YAMALE_VERSION=4.0.4 From 0d28d3144d3a25ea2cc349d6e59901c4ff469b3b Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Mon, 20 Jan 2025 12:04:01 +0100 Subject: [PATCH 19/19] clean up and fix cr action next release (#166) Signed-off-by: cpanato --- .github/workflows/test-action.yml | 2 +- README.md | 2 +- action.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 9290efb..289e70e 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -78,7 +78,7 @@ jobs: - name: Set up Helm uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 with: - version: v3.14.4 + version: v3.17.0 - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: diff --git a/README.md b/README.md index 6ba1708..1272521 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ jobs: check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.8.0 + uses: helm/chart-testing-action@v2.7.0 - name: Run chart-testing (list-changed) id: list-changed diff --git a/action.yml b/action.yml index e1edb1d..146d154 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ branding: icon: anchor inputs: version: - description: "The chart-testing version to install (default: 3.10.1)" + description: "The chart-testing version to install (default: 3.12.0)" required: false default: '3.12.0' yamllint_version: @@ -14,7 +14,7 @@ inputs: required: false default: '1.33.0' yamale_version: - description: "The yamale version to install (default: 3.0.4)" + description: "The yamale version to install (default: 4.0.4)" required: false default: '4.0.4' runs: