Skip to content

chore(main): release 1.12.64 #1726

chore(main): release 1.12.64

chore(main): release 1.12.64 #1726

Workflow file for this run

name: CI
on:
push:
branches: [main, 'release-please--branches--main']
pull_request:
paths-ignore:
- CHANGELOG.md
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.ref }}
sha: ${{ github.sha }}
- name: Set up Go 1.25.1
uses: actions/setup-go@v6
with:
go-version: '1.26.2'
- name: Install dependencies
run: go mod download
- name: Run tests
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
with:
files: ./coverage.txt
flags: unittests
name: codecov-umbrella
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.ref }}
sha: ${{ github.sha }}
- name: Run linting using Makefile
run: make lint-only
build:
name: Build
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.ref }}
sha: ${{ github.sha }}
- name: Set up Go 1.25.1
uses: actions/setup-go@v6
with:
go-version: '1.26.2'
- name: Build
run: |
go build -v -ldflags="-s -w" -o brother-exporter ./cmd
- name: Upload build artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: brother-exporter
path: brother-exporter
retention-days: 30
security:
name: Security Scan
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.ref }}
sha: ${{ github.sha }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
format: 'table'
exit-code: '1'
severity: 'CRITICAL,HIGH'