update
This commit is contained in:
@@ -20,16 +20,19 @@ on:
|
|||||||
permissions: read-all
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # To sign.
|
id-token: write # To sign.
|
||||||
contents: write # To upload release assets.
|
contents: write # To upload release assets.
|
||||||
actions: read # To read workflow path.
|
actions: read # To read workflow path.
|
||||||
# If you need more configuration options, such as ldflag examples,
|
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
|
||||||
# visit https://github.com/slsa-framework/slsa-github-generator#golang-projects.
|
|
||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
|
|
||||||
with:
|
with:
|
||||||
# By default, the config file is .slsa-goreleaser.yml in the root directory.
|
|
||||||
# The format of the config file is described in
|
|
||||||
# https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file.
|
|
||||||
go-version: 1.17
|
go-version: 1.17
|
||||||
|
# =============================================================================================================
|
||||||
|
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
|
||||||
|
# =============================================================================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user