Skip to content

Commit 487f148

Browse files
committed
Fix workflow permissions warning
1 parent 50c8999 commit 487f148

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: release
2+
23
on:
34
push:
45
tags:
56
- "v*"
7+
68
permissions:
79
contents: write
810
id-token: write

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Tests
2+
23
on:
34
push:
45
branches: [main]
56
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
611

712
jobs:
813
test:

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ require (
1111
github.com/cli/shurcooL-graphql v0.0.4
1212
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
1313
github.com/spf13/cobra v1.10.2
14+
github.com/stretchr/testify v1.11.1
15+
golang.org/x/text v0.32.0
1416
)
1517

1618
require (
@@ -41,11 +43,9 @@ require (
4143
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
4244
github.com/rivo/uniseg v0.4.7 // indirect
4345
github.com/spf13/pflag v1.0.10 // indirect
44-
github.com/stretchr/testify v1.11.1 // indirect
4546
github.com/thlib/go-timezone-local v0.0.6 // indirect
4647
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
4748
golang.org/x/sys v0.39.0 // indirect
4849
golang.org/x/term v0.38.0 // indirect
49-
golang.org/x/text v0.32.0 // indirect
5050
gopkg.in/yaml.v3 v3.0.1 // indirect
5151
)

0 commit comments

Comments
 (0)