Skip to content

Commit ec804fb

Browse files
committed
tighten permissions
1 parent aa16d90 commit ec804fb

6 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ defaults:
1515
run:
1616
shell: bash -eux {0}
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
build:
2023
runs-on: ${{ matrix.os }}

.github/workflows/downstream.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ concurrency:
99
group: downstream-${{ github.ref }}
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
nbclient:
1417
runs-on: ubuntu-latest

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ defaults:
88
run:
99
shell: bash -eux {0}
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
runs-on: "ubuntu-latest"

.github/workflows/publish-changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
description: "The branch to target"
1010
required: false
1111

12+
permissions:
13+
contents: write
14+
1215
jobs:
1316
publish_changelog:
1417
runs-on: ubuntu-latest
@@ -21,6 +24,8 @@ jobs:
2124
with:
2225
app-id: ${{ vars.APP_ID }}
2326
private-key: ${{ secrets.APP_PRIVATE_KEY }}
27+
permission-contents: write
28+
permission-pull-requests: write
2429

2530
- name: Publish changelog
2631
id: publish-changelog

.github/workflows/publish-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
description: "Comma separated list of steps to skip"
1313
required: false
1414

15+
permissions:
16+
contents: write
17+
1518
jobs:
1619
publish_release:
1720
runs-on: ubuntu-latest
@@ -26,6 +29,8 @@ jobs:
2629
with:
2730
app-id: ${{ vars.APP_ID }}
2831
private-key: ${{ secrets.APP_PRIVATE_KEY }}
32+
permission-contents: write
33+
permission-pull-requests: write
2934

3035
- name: Populate Release
3136
id: populate-release

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ repos:
3232
- id: mdformat
3333
additional_dependencies: [mdformat-footnote]
3434

35-
- repo: https://github.com/pre-commit/mirrors-prettier
36-
rev: "v4.0.0-alpha.8"
35+
- repo: https://github.com/rbubley/mirrors-prettier
36+
rev: "v3.9.6"
3737
hooks:
3838
- id: prettier
3939
types_or: [yaml, html, json]

0 commit comments

Comments
 (0)