Skip to content

Commit 8211af1

Browse files
committed
set read permissions for all workflows and set check-js-build to run on pr synchronize
1 parent 6d6aaa7 commit 8211af1

8 files changed

Lines changed: 25 additions & 1 deletion

File tree

‎.github/workflows/build-doc.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, reopened, synchronize]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build-doc:
1215
runs-on: ubuntu-latest

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, reopened, synchronize]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
plotlyjs-dev-build:
1215
name: plotly.js dev build

‎.github/workflows/check-codegen.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, reopened, synchronize]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
check-python-codegen:
1215
name: Check Python codegen

‎.github/workflows/check-formatting.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, reopened, synchronize]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
check-code-formatting:
1215
name: Run ruff check

‎.github/workflows/check-js-build.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ on:
33
branches:
44
- main
55
pull_request:
6-
types: [opened, reopened]
6+
types: [opened, reopened, synchronize]
77
paths:
88
- 'js/**'
99
- 'plotly/labextension/**'
1010

1111
name: Check JS build
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
check-js-build:
1518
name: Check JS version number and build artifacts

‎.github/workflows/run-percy.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
types: [opened, reopened, synchronize]
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
python-311-percy:
1316
name: Run Percy

‎.github/workflows/run-pytest.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
types: [opened, reopened, synchronize]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test-core:
1215
name: Core tests (Python ${{ matrix.python-version }})

‎.github/workflows/test-release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Test release
33
on:
44
workflow_dispatch
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build:
811
name: Full prod build

0 commit comments

Comments
 (0)