Skip to content

Commit efece7d

Browse files
authored
ci: Restrict master workflow permissions (#58)
Declare contents: read for the two legacy master workflows flagged by CodeQL. This is a focused default-branch fix; reviewability-v1 already deletes pylint.yml and has PR #50 for its active test workflow. Validation: git diff --check.
1 parent 1c68cd5 commit efece7d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/pylint.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Pylint
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest

‎.github/workflows/python-package.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
branches: [ "master" ]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417

0 commit comments

Comments
 (0)