Skip to content

Commit a5867d0

Browse files
authored
Merge pull request #2868 from sashashura/patch-1
GitHub Workflows security hardening
2 parents 2f9eb19 + 137b77d commit a5867d0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: lint
22
on: [push, pull_request]
3+
permissions:
4+
contents: read # to fetch code (actions/checkout)
35
jobs:
46
tox-lint:
57
runs-on: ubuntu-latest

.github/workflows/tox.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: tox
22
on: [push, pull_request]
3+
permissions:
4+
contents: read # to fetch code (actions/checkout)
35
jobs:
46
tox:
57
strategy:

0 commit comments

Comments
 (0)