Skip to content

Commit

Permalink
ci: add GitHub token permissions (pythonGH-92999)
Browse files Browse the repository at this point in the history
(cherry picked from commit b96e20c)

Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
  • Loading branch information
varunsh-coder authored and miss-islington committed Oct 10, 2022
1 parent fc14f1a commit 5ad81c0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
- '3.8'
- '3.7'

permissions:
contents: read

jobs:
check_source:
name: 'Check for source changes'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ on:
paths:
- 'Tools/msi/**'

permissions:
contents: read

jobs:
build_win32:
name: 'Windows (x86) Installer'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ on:
- 'Misc/**'
- '.github/workflows/doc.yml'

permissions:
contents: read

jobs:
build_doc:
name: 'Docs'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/new-bugs-announce-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types:
- opened

permissions:
issues: read

jobs:
notify-new-bugs-announce:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
body : issue.data.body
};
const data = {
from: "CPython Issues <github@mg.python.org>",
to: "new-bugs-announce@python.org",
Expand Down

0 comments on commit 5ad81c0

Please sign in to comment.