feat: add open ssf best practices badge #2713
Workflow file for this run
This file contains 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: quick-start | |
permissions: | |
contents: read | |
on: | |
pull_request_target: | |
types: [labeled] | |
pull_request: | |
branches: | |
- main | |
- dev | |
- 1.0.0* | |
push: | |
branches: | |
- 1.0.0* | |
- dev | |
- main | |
workflow_dispatch: | |
jobs: | |
test-quick-start: | |
name: "Run quick start test" | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
KUBERNETES_VERSION: ["1.29.2"] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: setup go environment | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: "1.22" | |
- name: Run tidy | |
run: go mod tidy | |
- name: Bootstrap e2e | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/bin | |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
make e2e-bootstrap KUBERNETES_VERSION=${{ matrix.KUBERNETES_VERSION }} | |
make generate-certs | |
- name: Run e2e with config policy | |
run: | | |
make e2e-helmfile-install | |
make e2e-helmfile-deploy-released-ratify | |
make test-quick-start | |
- name: Save logs | |
if: ${{ always() }} | |
run: | | |
kubectl logs -n gatekeeper-system -l app=ratify --tail=-1 > logs-ratify-preinstall-${{ matrix.KUBERNETES_VERSION }}-config-policy.json | |
kubectl logs -n gatekeeper-system -l app.kubernetes.io/name=ratify --tail=-1 > logs-ratify-${{ matrix.KUBERNETES_VERSION }}-config-policy.json | |
- name: Upload artifacts | |
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | |
if: ${{ always() }} | |
with: | |
name: e2e-logs-${{ matrix.KUBERNETES_VERSION }} | |
path: | | |
logs-*.json |