mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
chore: Set permissions for GitHub actions (#6936)
This commit is contained in:
parent
b4624bd468
commit
e65071d3aa
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
@ -18,8 +18,14 @@ on:
|
|||||||
env:
|
env:
|
||||||
GOPROXY: "https://proxy.golang.org"
|
GOPROXY: "https://proxy.golang.org"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
3
.github/workflows/shell.yml
vendored
3
.github/workflows/shell.yml
vendored
@ -4,6 +4,9 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
name: Shellcheck
|
name: Shellcheck
|
||||||
|
Loading…
x
Reference in New Issue
Block a user