ci: declare explicit read-only workflow permissions
This commit is contained in:
parent
c34d6e81fd
commit
a191c86306
2 changed files with 8 additions and 0 deletions
4
.github/workflows/pre-commit.yaml
vendored
4
.github/workflows/pre-commit.yaml
vendored
|
|
@ -3,6 +3,10 @@ on:
|
|||
pull_request:
|
||||
push:
|
||||
branches: [main, stable]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
4
.github/workflows/tests.yaml
vendored
4
.github/workflows/tests.yaml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
|||
push:
|
||||
branches: [main, stable]
|
||||
paths-ignore: ['docs/**', 'README.md']
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: ${{ matrix.name || matrix.python }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue