Add SLSA Go releaser configuration and workflow files for automated builds and releases
Some checks failed
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 5s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 5s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 32s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 31s
Run Gosec / tests (push) Failing after 2s
Go Revive Lint / lint (push) Failing after 1s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 45s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 3s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 3s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 1s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 1s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 37s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m9s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled

This commit is contained in:
2025-12-06 12:42:07 -06:00
parent 395b180757
commit e59fee8e60
2 changed files with 62 additions and 0 deletions

24
.github/workflows/slsa-go-releaser.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: SLSA Go releaser
on:
workflow_dispatch:
release:
types: [created]
permissions:
contents: write
id-token: write
actions: read
jobs:
build:
permissions:
id-token: write
contents: write
actions: read
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.10.0
with:
go-version: "1.24"
config-file: .slsa-goreleaser.yml
upload-assets: true

38
.slsa-goreleaser.yml Normal file
View File

@@ -0,0 +1,38 @@
version: 1
builds:
- id: reticulum-go
main: ./cmd/reticulum-go
binary: reticulum-go
flags:
- -trimpath
ldflags:
- -s -w
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- id: archives
builds:
- reticulum-go
format: tar.gz
files:
- LICENSE
- README.md
checksums:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
github:
owner: Sudo-Ivan
name: reticulum-go
snapshot:
name_template: snapshot