Merge pull request #1293 from turrisxyz/setup-permissions
chore: Set permissions for GitHub actions
This commit is contained in:
commit
def6865402
|
@ -1,5 +1,8 @@
|
|||
on: [push, pull_request]
|
||||
name: Build Test
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build_test_v3:
|
||||
strategy:
|
||||
|
|
|
@ -2,8 +2,14 @@ name: "Pull Request Labeler"
|
|||
on:
|
||||
- pull_request_target
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
permissions:
|
||||
contents: read # for actions/labeler to determine modified files
|
||||
pull-requests: write # for actions/labeler to add labels to PRs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@v4
|
||||
|
|
|
@ -4,8 +4,14 @@ on:
|
|||
push:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
golangci:
|
||||
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:
|
||||
|
|
|
@ -3,6 +3,9 @@ on:
|
|||
- cron: '0 1 1 * *' # UTC 01:00 on the first day of the Month
|
||||
|
||||
name: Release
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
on: [push, pull_request]
|
||||
name: Shellcheck
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
name: Shellcheck
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
on: [push, pull_request]
|
||||
name: Test
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test_v3_module:
|
||||
strategy:
|
||||
|
|
Loading…
Reference in New Issue