Skip to content

Commit 279eb3c

Browse files
committed
bump go-make and fix release permissions
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
1 parent 0a38dda commit 279eb3c

5 files changed

Lines changed: 20 additions & 21 deletions

File tree

.github/workflows/release.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ on:
1515
required: true
1616

1717
jobs:
18-
1918
version-available:
2019
uses: anchore/workflows/.github/workflows/check-version-available.yaml@4f25313f96311410cad4173f74617654a3e46d48 # v0.3.0
20+
permissions:
21+
contents: read # for getting all tags
2122
with:
2223
version: ${{ github.event.inputs.version }}
2324

2425
check-gate:
2526
permissions:
26-
checks: read # required for getting the status of specific check names
27+
checks: read # required for getting the status of specific check names
2728
uses: anchore/workflows/.github/workflows/check-gate.yaml@4f25313f96311410cad4173f74617654a3e46d48 # v0.3.0
2829
with:
2930
# these are checks that should be run on pull-request and merges to main.
@@ -33,18 +34,18 @@ jobs:
3334

3435
release:
3536
needs: [check-gate, version-available]
36-
environment: release # contains secrets needed for release
37+
environment: release # contains secrets needed for release
3738
runs-on: ubuntu-24.04
3839
permissions:
39-
contents: write # needed for creating github release objects
40+
contents: write # needed for creating github release objects
4041
steps:
4142
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
4243
with:
43-
fetch-depth: 0 # we need the full history to reason about changelogs and tags
44-
persist-credentials: true # needed for pushing a tag
44+
fetch-depth: 0 # we need the full history to reason about changelogs and tags
45+
persist-credentials: true # needed for pushing a tag
4546

4647
# setup checkout, go, go-make, binny, and cache go modules
47-
- uses: anchore/go-make/.github/actions/setup@383ef7852b8ae43a30f424896b52479186d2ea4d # v0.1.0
48+
- uses: anchore/go-make/.github/actions/setup@v0.4.0
4849

4950
- name: Create release
5051
env:

.github/workflows/validations.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
permissions: {}
1010

1111
jobs:
12-
1312
Static-Analysis:
1413
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
1514
name: "Static analysis"
@@ -18,7 +17,7 @@ jobs:
1817
contents: read
1918
steps:
2019
# setup checkout, go, go-make, binny, and cache go modules
21-
- uses: anchore/go-make/.github/actions/setup@383ef7852b8ae43a30f424896b52479186d2ea4d # v0.1.0
20+
- uses: anchore/go-make/.github/actions/setup@v0.4.0
2221

2322
- name: Run static analysis
2423
run: make static-analysis
@@ -31,7 +30,7 @@ jobs:
3130
contents: read
3231
steps:
3332
# setup checkout, go, go-make, binny, and cache go modules
34-
- uses: anchore/go-make/.github/actions/setup@383ef7852b8ae43a30f424896b52479186d2ea4d # v0.1.0
33+
- uses: anchore/go-make/.github/actions/setup@v0.4.0
3534

3635
- name: Run unit tests
3736
run: make unit

.make/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module local
22

33
go 1.25.0
44

5-
require github.com/anchore/go-make v0.1.0
5+
require github.com/anchore/go-make v0.4.0
66

77
require (
88
github.com/bmatcuk/doublestar/v4 v4.10.0 // indirect
99
github.com/goccy/go-yaml v1.19.2 // indirect
10-
golang.org/x/mod v0.34.0 // indirect
11-
golang.org/x/sys v0.42.0 // indirect
10+
golang.org/x/mod v0.35.0 // indirect
11+
golang.org/x/sys v0.44.0 // indirect
1212
)

.make/go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
github.com/anchore/go-make v0.1.0 h1:w/DTKznE1s0u5H1ahAnLaHRbCyNuOn5sJd0UltKWCIA=
2-
github.com/anchore/go-make v0.1.0/go.mod h1:JafD2Md95wih7aGmA12yVoReZW3mOgIuwHbw5aOcIOQ=
1+
github.com/anchore/go-make v0.4.0 h1:poFE4PXcHwvix2E8AhdM7YHZ15bMhZb+W02i3+qrP8M=
2+
github.com/anchore/go-make v0.4.0/go.mod h1:Nc/tkwQHW1d1Vi8+0rtS/vSrH6pxieaUQXLdrctn+8g=
33
github.com/bmatcuk/doublestar/v4 v4.10.0 h1:zU9WiOla1YA122oLM6i4EXvGW62DvKZVxIe6TYWexEs=
44
github.com/bmatcuk/doublestar/v4 v4.10.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc=
55
github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM=
66
github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
7-
golang.org/x/mod v0.34.0 h1:xIHgNUUnW6sYkcM5Jleh05DvLOtwc6RitGHbDk4akRI=
8-
golang.org/x/mod v0.34.0/go.mod h1:ykgH52iCZe79kzLLMhyCUzhMci+nQj+0XkbXpNYtVjY=
9-
golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=
10-
golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
7+
golang.org/x/mod v0.35.0 h1:Ww1D637e6Pg+Zb2KrWfHQUnH2dQRLBQyAtpr/haaJeM=
8+
golang.org/x/mod v0.35.0/go.mod h1:+GwiRhIInF8wPm+4AoT6L0FA1QWAad3OMdTRx4tFYlU=
9+
golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ=
10+
golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=

.make/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ func main() {
1111
Makefile(
1212
gotest.Tasks(),
1313
golint.Tasks(),
14-
release.ChangelogTask(),
15-
release.TagAndCreateGHRelease(),
14+
release.Tasks(),
1615
)
1716
}

0 commit comments

Comments
 (0)