diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d4100b63..e5cc25ac6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install CI run: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9c2e18f03..7d3fdd165 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install go version uses: actions/setup-go@v4 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ae7bf82e8..bdb500259 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,7 +14,7 @@ jobs: name: Release Docs runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 diff --git a/.github/workflows/json-yaml-validate.yml b/.github/workflows/json-yaml-validate.yml index 1d0fcd10d..c4f0d6d73 100644 --- a/.github/workflows/json-yaml-validate.yml +++ b/.github/workflows/json-yaml-validate.yml @@ -14,7 +14,7 @@ jobs: json-yaml-validate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: json-yaml-validate uses: GrantBirki/json-yaml-validate@v2.4.0 diff --git a/.github/workflows/lint-test-chart.yaml b/.github/workflows/lint-test-chart.yaml index 6d3108a47..eb22146eb 100644 --- a/.github/workflows/lint-test-chart.yaml +++ b/.github/workflows/lint-test-chart.yaml @@ -14,49 +14,55 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 - - name: Run Artifact Hub lint - run: | - set -euo pipefail - curl -Lo ah_linux_amd64.tar.gz https://github.com/artifacthub/hub/releases/download/v1.9.0/ah_1.9.0_linux_amd64.tar.gz - tar -xzvf ah_linux_amd64.tar.gz ah - ./ah lint --kind helm || exit 1 - rm -f ./ah ./ah_linux_amd64.tar.gz - - - name: Set-up Helm - uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 + - name: Install Artifact Hub CLI + uses: action-stars/install-tool-from-github-release@58e2dd20166c0eb19ab9ac4d0966c930a647ee69 # v0.2.0 with: - token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ github.token }} + owner: artifacthub + repository: hub + name: ah + check_command: ah version version: latest - - name: Set-up Python + - name: Run Artifact Hub lint + run: ah lint --kind helm || exit 1 + + - name: Install Helm + uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 + with: + token: ${{ github.token }} + version: latest + + - name: Install Python uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ github.token }} python-version: "3.x" - name: Set-up chart-testing uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - - name: Run chart-testing (list-changed) - id: list-changed + - name: Check for changes + id: changes run: | changed=$(ct list-changed) if [[ -n "$changed" ]]; then - echo "changed=true" >> $GITHUB_OUTPUT + echo "changed=true" >> "${GITHUB_OUTPUT}" fi - - name: Run chart-testing (lint) + - name: Run chart-testing lint run: ct lint --check-version-increment=false - - name: Set-up Kind cluster + - name: Create Kind cluster + if: steps.changes.outputs.changed == 'true' uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0 with: wait: 120s - if: steps.list-changed.outputs.changed == 'true' - - name: Run chart-testing (install) + - name: Run chart-testing install + if: steps.changes.outputs.changed == 'true' run: ct install diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 90bce599b..bec9cfe16 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,7 +27,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Lint run: | diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 8c36f4dee..b24885e1f 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -20,7 +20,7 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 # v4.0.0 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 @@ -50,7 +50,7 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Set-up Helm + - name: Install Helm uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/staging-image-tester.yml b/.github/workflows/staging-image-tester.yml index 79a5f9507..629725fe2 100644 --- a/.github/workflows/staging-image-tester.yml +++ b/.github/workflows/staging-image-tester.yml @@ -27,7 +27,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install CI run: |