Files
starter-workflows/ci/go-ossf-slsa3-publish.yml
T

39 lines
1.9 KiB
YAML
Raw Normal View History

2022-06-19 23:24:36 -07:00
# 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.
2022-11-04 20:45:41 +01:00
# 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
2022-06-19 23:24:36 -07:00
# that were performed to generate the final binary.
2022-11-04 20:45:41 +01:00
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
2022-06-19 23:24:36 -07:00
# 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:
workflow_dispatch:
release:
types: [created]
permissions: read-all
jobs:
2022-07-19 00:47:52 +00:00
# ========================================================================================================================================
2022-11-04 20:45:41 +01:00
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project.
2022-07-19 00:47:52 +00:00
# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file
#=========================================================================================================================================
2022-06-19 23:24:36 -07:00
build:
permissions:
id-token: write # To sign.
contents: write # To upload release assets.
actions: read # To read workflow path.
2023-01-03 00:18:37 -08:00
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
2022-06-19 23:24:36 -07:00
with:
go-version: 1.17
2022-07-19 00:47:52 +00:00
# =============================================================================================================
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
# =============================================================================================================