This repository was archived by the owner on Jul 30, 2025. It is now read-only.
chore(deps): update anchore/sbom-action action to v0.20.4 #2951
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: lint, test and build image | |
| on: [pull_request, push] | |
| jobs: | |
| lint-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| args: --config .golangci.yml --timeout 2m | |
| version: v2.3.0 | |
| - name: Test | |
| run: go test ./... | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [lint-test] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: build binary | |
| run: make build-linux | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build flasher Docker image - no push | |
| id: dockerbuild-flasher | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: false | |
| file: Dockerfile | |
| - name: Scan image - flasher | |
| id: scan-flasher-image | |
| uses: anchore/scan-action@v6 | |
| with: | |
| image: ghcr.io/metal-toolbox/flasher:latest | |
| acs-report-enable: true | |
| fail-build: false | |
| - name: Inspect action SARIF report | |
| run: cat ${{ steps.scan.outputs.sarif }} | |
| if: always() |