mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Create go-ossf-slsa3-publish.yml
This commit is contained in:
parent
e30fc7aa3b
commit
60f14701e6
1 changed files with 53 additions and 0 deletions
53
.github/workflows/go-ossf-slsa3-publish.yml
vendored
Normal file
53
.github/workflows/go-ossf-slsa3-publish.yml
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
# 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:
|
||||||
|
workflow_dispatch:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# ========================================================================================================================================
|
||||||
|
# Prerequesite: 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
|
||||||
|
#=========================================================================================================================================
|
||||||
|
build:
|
||||||
|
permissions:
|
||||||
|
id-token: write # To sign.
|
||||||
|
contents: write # To upload release assets.
|
||||||
|
actions: read # To read workflow path.
|
||||||
|
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0
|
||||||
|
with:
|
||||||
|
go-version: 1.17
|
||||||
|
# =============================================================================================================
|
||||||
|
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
|
||||||
|
# =============================================================================================================
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- release/
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 2 * * 1-5"
|
||||||
|
obs:
|
||||||
|
my_job:
|
||||||
|
name: deploy to staging
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
Loading…
Reference in a new issue