name: Lint dashboards on: push: branches: - main paths: - 'charts/fission-all/dashboards/**.json' pull_request: branches: - main paths: - 'charts/fission-all/dashboards/**.json' permissions: contents: read jobs: lint-dashboards: runs-on: ubuntu-24.04 if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-ci') }} steps: - name: Harden Runner uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 with: egress-policy: audit - name: Check out code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Go uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: "go.mod" - name: Install dashboard linter run: | go get github.com/grafana/dashboard-linter go install github.com/grafana/dashboard-linter - name: Run dashboard linter run: ./hack/lint-dashboards.sh