Skip to content

Commit

Permalink
Update README.md (slsa-framework#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon authored Jun 15, 2022
1 parent d691c47 commit b92b34c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/builders/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The configuration file accepts many of the common fields Goreleaser uses, as you
| `{{ .CommitDate }}` | `date -d @$(git log --date=iso8601-strict -1 --pretty=%ct)` | `Mon Jun 13 01:23:36 AM UTC 2022` |
| `{{ .FullCommit }}` | `$GITHUB_SHA` or `$(git rev-parse HEAD)` | `b2a980888f359b8cef22cb61f153746e1a06deb0` |
| `{{ .ShortCommit }}` | `$(echo $GITHUB_SHA \| cut -c1-8)` or `$(git rev-parse HEAD \| cut -c1-8)` | `b2a98088` |
| `{{ .Version }}` | `$(git describe --tags --always --dirty \| cut -c2-)` | `1.2.3-alpha+b2a98088` |
| `{{ .Version }}` | `$(git describe --tags --always --dirty \| cut -c2-)` or `$(echo $GITHUB_REF_NAME \| cut -c2-)` on new tags and release triggers | `1.2.3-alpha+b2a98088` |
| `{{ .Tag }}` | `$GITHUB_REF_NAME` (on `release` and `push` new tag triggers) or `$(git describe --tags --always --dirty \| cut -c2-)` | `v1.2.3-alpha+b2a98088` |
| `{{ .Major }}` | `$(git describe --tags --always --dirty \| cut -d '.' -f1 \| cut -c2-)` | `1` |
| `{{ .Minor }}` | `$(git describe --tags --always --dirty \| cut -d '.' -f2` | `2` |
Expand Down Expand Up @@ -166,9 +166,9 @@ jobs:
# Trusted builder.
build:
permissions:
id-token: write
contents: write
actions: read
id-token: write # To sign the provenance.
contents: write # To upload assets to release.
actions: read # To read the workflow path.
needs: args
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.0.0
with:
Expand Down

0 comments on commit b92b34c

Please sign in to comment.