Skip to content

Bump actions/upload-artifact from 4.4.3 to 4.5.0 #424

Bump actions/upload-artifact from 4.4.3 to 4.5.0

Bump actions/upload-artifact from 4.4.3 to 4.5.0 #424

Workflow file for this run

name: Integration
on:
push:
pull_request:
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "^1.21"
- name: Checkout Code
uses: actions/checkout@v4
- name: Lint Go Code
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
vet:
name: Vet
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "^1.21"
- name: Checkout Code
uses: actions/checkout@v4
- name: Vet Go code
run: go vet ./...
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.21"
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Compile
run: go build -v -o build/docker-machine-driver-nutanix machine/main.go
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
env:
TRIVY_DB_REPOSITORY: "ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db"
with:
scan-type: "fs"
ignore-unfixed: true
format: "table"
exit-code: "1"
vuln-type: "os,library"
severity: "CRITICAL,HIGH"
- name: Upload artifact
uses: actions/[email protected]
with:
# Artifact name
name: docker-machine-driver-nutanix
# Directory containing files to upload
path: build/docker-machine-driver-nutanix