update CHANGELOG.md #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SLSA go releaser | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+" | |
| permissions: read-all | |
| jobs: | |
| args: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| commit-date: ${{ steps.ldflags.outputs.commit-date }} | |
| commit: ${{ steps.ldflags.outputs.commit }} | |
| version: ${{ steps.ldflags.outputs.version }} | |
| tree-state: ${{ steps.ldflags.outputs.tree-state }} | |
| steps: | |
| - id: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - id: ldflags | |
| run: | | |
| echo "commit-date=$(git log --date=iso8601-strict -1 --pretty=%ct)" >> "$GITHUB_OUTPUT" | |
| echo "commit=$GITHUB_SHA" >> "$GITHUB_OUTPUT" | |
| echo "version=$(git describe --tags --always --dirty | cut -c2-)" >> "$GITHUB_OUTPUT" | |
| echo "tree-state=$(if git diff --quiet; then echo "clean"; else echo "dirty"; fi)" >> "$GITHUB_OUTPUT" | |
| build: | |
| permissions: | |
| id-token: write # To sign the provenance. | |
| contents: write # To upload assets to release. | |
| actions: read # To read the workflow path. | |
| needs: [args] | |
| strategy: | |
| matrix: | |
| os: | |
| - linux | |
| - windows | |
| - darwin | |
| arch: | |
| - amd64 | |
| - arm64 | |
| exclude: | |
| - os: linux | |
| arch: arm64 | |
| - os: windows | |
| arch: arm64 | |
| uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v2.0.0 | |
| with: | |
| go-version: "^1.20.0" | |
| config-file: .slsa-goreleaser/${{matrix.os}}-${{matrix.arch}}.yml | |
| evaluated-envs: "COMMIT_DATE:${{needs.args.outputs.commit-date}}, COMMIT:${{needs.args.outputs.commit}}, VERSION:${{needs.args.outputs.version}}, TREE_STATE:${{needs.args.outputs.tree-state}}" |