Use sigstore/policy-controller and update trust-policies #82
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 Charts | |
| on: | |
| pull_request: | |
| paths: | |
| - "charts/**" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| with: | |
| version: v3.10.3 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: '3.13' | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0 | |
| - name: Run chart-testing (lint) | |
| run: ct lint --config ct.yaml | |
| - name: Create KIND Cluster | |
| uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 | |
| - name: Install policy-controller | |
| run: | | |
| helm install policy-controller --atomic \ | |
| --create-namespace --namespace artifact-attestations \ | |
| oci://ghcr.io/sigstore/helm-charts/policy-controller \ | |
| --version v0.13.1 | |
| - name: Install trust-policies | |
| run: | | |
| helm install trust-policies charts/trust-policies \ | |
| --set policy.enabled=true \ | |
| --set policy.organization=github |