Bump anchore/scan-action from 6.0.0 to 6.1.0 #1981
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
go_pipeline: | |
name: Go build and static analysis | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
id: go | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: actions/checkout@v4 | |
- name: Prepare environment | |
run: sudo apt -y update && sudo apt-get -y install libvips-dev | |
- name: Build web app | |
run: cd cmd/alpacascloud/web/ && npm install && npm run build | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Build | |
run: go build cmd/alpacascloud/main.go | |
- name: Staticcheck | |
run: go install honnef.co/go/tools/cmd/staticcheck@2024.1.1 && staticcheck -checks 'all,-ST1000,-SA1019' ./... | |
docker-image-image-api-server: | |
name: Build & scan Docker image Image API server | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Docker image | |
run: | | |
docker build -t test-build-image-api-server -f image-api-server.dockerfile . | |
docker run test-build-image-api-server || test $? -eq 1 | |
- name: Anchore scan | |
id: scan | |
uses: anchore/scan-action@v6.1.0 | |
with: | |
image: "test-build-image-api-server" | |
fail-build: false | |
acs-report-enable: true | |
- name: Upload Anchore scan SARIF report | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: ${{ steps.scan.outputs.sarif }} |