Update Gitea workflows to use new action paths and add SBOM generation step
All checks were successful
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 1m18s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 1m14s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 1m12s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 1m16s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 30s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m58s
Go Revive Lint / lint (push) Successful in 1m31s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 2m1s
Run Gosec / tests (push) Successful in 2m31s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 9m48s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 9m43s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 9m44s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 9m46s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 9m41s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 9m39s
Go Build Multi-Platform / Create Release (push) Has been skipped

This commit is contained in:
2025-12-28 21:07:26 -06:00
parent 8e243a7c8b
commit ea36ba7a65
6 changed files with 22 additions and 40 deletions

View File

@@ -27,10 +27,10 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: https://git.quad4.io/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go - name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 uses: https://git.quad4.io/actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with: with:
go-version: '1.25' go-version: '1.25'
@@ -57,8 +57,14 @@ jobs:
sha256sum "${output_name}" > "${output_name}.sha256" sha256sum "${output_name}" > "${output_name}.sha256"
echo "Calculated SHA256 for ${output_name}" echo "Calculated SHA256 for ${output_name}"
- name: Generate SBOM
uses: https://git.quad4.io/actions/gh-gomod-generate-sbom@efc74245d6802c8cefd925620515442756c70d8f # v2
with:
version: v1
args: mod -licenses -json -output bom.json
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 uses: https://git.quad4.io/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5
with: with:
name: reticulum-go-${{ matrix.goos }}-${{ matrix.goarch }} name: reticulum-go-${{ matrix.goos }}-${{ matrix.goarch }}
path: reticulum-go-${{ matrix.goos }}-${{ matrix.goarch }}* path: reticulum-go-${{ matrix.goos }}-${{ matrix.goarch }}*
@@ -74,14 +80,14 @@ jobs:
steps: steps:
- name: Download All Build Artifacts - name: Download All Build Artifacts
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a uses: https://git.quad4.io/actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
with: with:
path: ./release-assets path: ./release-assets
- name: List downloaded files (for debugging) - name: List downloaded files (for debugging)
run: ls -R ./release-assets run: ls -R ./release-assets
- name: Create GitHub Release - name: Create Gitea Release
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1 uses: https://git.quad4.io/actions/gitea-release-action@4875285c0950474efb7ca2df55233c51333eeb74
with: with:
files: ./release-assets/*/* files: ./release-assets/*/*

View File

@@ -30,15 +30,15 @@ jobs:
steps: steps:
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: https://git.quad4.io/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go 1.25 - name: Set up Go 1.25
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 uses: https://git.quad4.io/actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with: with:
go-version: '1.25' go-version: '1.25'
- name: Cache Go modules - name: Cache Go modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 uses: https://git.quad4.io/actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with: with:
path: | path: |
~/go/pkg/mod ~/go/pkg/mod

View File

@@ -20,8 +20,8 @@ jobs:
GO111MODULE: on GO111MODULE: on
steps: steps:
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: https://git.quad4.io/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run Gosec Security Scanner - name: Run Gosec Security Scanner
uses: securego/gosec@master uses: https://git.quad4.io/actions/gosec@c073629009897d89e03229bc81232c7375892086
with: with:
args: ./... args: ./...

View File

@@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: https://git.quad4.io/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go - name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 uses: https://git.quad4.io/actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with: with:
go-version: '1.25' go-version: '1.25'

View File

@@ -1,24 +0,0 @@
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@v2.1.0
with:
go-version-file: go.mod
config-file: .slsa-goreleaser.yml
upload-assets: true

View File

@@ -30,10 +30,10 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: https://git.quad4.io/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go - name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 uses: https://git.quad4.io/actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
with: with:
go-version: '1.24' go-version: '1.24'
@@ -58,7 +58,7 @@ jobs:
fi fi
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 uses: https://git.quad4.io/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5
with: with:
name: ${{ matrix.name }} name: ${{ matrix.name }}
path: bin/${{ matrix.output }}* path: bin/${{ matrix.output }}*