Remove unused code #2
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| check-skills: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check skill sync | |
| run: make check-skills | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: check-skills | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| - name: Verify gofmt | |
| run: | | |
| files="$(gofmt -l .)" | |
| if [ -n "$files" ]; then | |
| echo "The following files need gofmt:" >&2 | |
| echo "$files" >&2 | |
| exit 1 | |
| fi | |
| - name: Go vet | |
| run: go vet ./... | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| args: --timeout 5m | |
| - name: Run tests | |
| run: go test -coverprofile=coverage.out ./... | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.out | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Build CLI | |
| run: go build ./cmd/bkt | |
| - name: Generate SBOM | |
| uses: anchore/sbom-action@v0 | |
| with: | |
| output-file: sbom.cdx.json | |
| format: cyclonedx-json | |
| scorecard: | |
| runs-on: ubuntu-latest | |
| if: ${{ !github.event.repository.private }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ossf/scorecard-action@v2.4.3 | |
| with: | |
| results_file: results.sarif | |
| results_format: sarif | |
| - uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: results.sarif |