Skip to content

1.0.2

1.0.2 #3

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow lets you compile your Go project using a SLSA3 compliant builder.
# This workflow will generate a so-called "provenance" file describing the steps
# that were performed to generate the final binary.
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
# https://github.com/slsa-framework/slsa-github-generator.
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
name: SLSA Go releaser
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
release:
types: [created]
permissions: read-all
jobs:
scan:
name: Security Scan
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:go"
- name: Go Vulnerability Check
uses: Templum/govulncheck-action@v1
with:
go-version: 1.23.2
vulncheck-version: v1.1.3
# ========================================================================================================================================
# Prerequisite: Create a .slsa-goreleaser.yml in the root directory of your project.
# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file
#=========================================================================================================================================
release:
name: Release
needs: [scan]
permissions:
id-token: write # To sign.
contents: write # To upload release assets.
actions: read # To read workflow path.
strategy:
matrix:
os:
- linux
- darwin
- windows
arch:
- amd64
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
go-version: 1.23
config-file: .slsa-goreleaser/cheek-turner-${{matrix.os}}-${{matrix.arch}}.yml
upload-assets: true