aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/go.yml6
-rw-r--r--.github/workflows/shell.yml3
2 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 8967a204..c2fb3b34 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -18,8 +18,14 @@ on:
env:
GOPROXY: "https://proxy.golang.org"
+permissions:
+ contents: read
+
jobs:
lint:
+ permissions:
+ contents: read # for actions/checkout to fetch code
+ pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: Lint
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/shell.yml b/.github/workflows/shell.yml
index e0826296..7031950e 100644
--- a/.github/workflows/shell.yml
+++ b/.github/workflows/shell.yml
@@ -4,6 +4,9 @@ on:
branches: [ main ]
pull_request:
+permissions:
+ contents: read
+
jobs:
shellcheck:
name: Shellcheck