Fix workflow permissions warning

This commit is contained in:
Sameen Karim
2026-03-12 20:20:54 -04:00
parent 50c8999f78
commit 487f148ff2
3 changed files with 9 additions and 2 deletions
+2
View File
@@ -1,8 +1,10 @@
name: release
on:
push:
tags:
- "v*"
permissions:
contents: write
id-token: write
+5
View File
@@ -1,8 +1,13 @@
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
+2 -2
View File
@@ -11,6 +11,8 @@ require (
github.com/cli/shurcooL-graphql v0.0.4
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.11.1
golang.org/x/text v0.32.0
)
require (
@@ -41,11 +43,9 @@ require (
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/stretchr/testify v1.11.1 // indirect
github.com/thlib/go-timezone-local v0.0.6 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/term v0.38.0 // indirect
golang.org/x/text v0.32.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)