Skip to content

Commit 4477dc2

Browse files
committed
Permissions: simplify to workflow-level only; remove .gitignore canary marker
1 parent bbbf101 commit 4477dc2

8 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/CheckCompatBounds.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: "Check Compat Bounds"
22
on:
33
pull_request: ~
4+
permissions:
5+
contents: "read"
46
jobs:
57
check-compat-bounds:
68
name: "Check Compat Bounds"

.github/workflows/Documentation.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ concurrency:
1111
group: "${{ github.workflow }}-${{ github.ref }}"
1212
cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}"
1313
permissions:
14-
contents: read
14+
contents: "write"
1515
jobs:
1616
build-and-deploy-docs:
1717
name: "Documentation"
18-
permissions:
19-
contents: write
2018
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@v1"
2119
with:
2220
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/FormatCheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- "synchronize"
77
- "reopened"
88
- "ready_for_review"
9+
permissions:
10+
contents: "read"
911
jobs:
1012
format-check:
1113
name: "Format Check"

.github/workflows/IntegrationTest.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ on:
1212
- "ready_for_review"
1313
- "converted_to_draft"
1414
permissions:
15-
contents: read
15+
actions: "read"
16+
contents: "read"
1617
jobs:
1718
integration-test:
1819
name: "IntegrationTest"
19-
permissions:
20-
actions: read
21-
contents: read
2220
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@v1"
2321
secrets: "inherit"
2422
with:

.github/workflows/TagBot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
workflow_dispatch: ~
77
env:
88
REGISTRY_TAGBOT_ACTION: "JuliaRegistries/TagBot"
9+
permissions:
10+
contents: "write"
11+
issues: "read"
912
jobs:
1013
TagBot:
1114
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"

.github/workflows/Tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
concurrency:
2020
group: "${{ github.workflow }}-${{ github.ref }}"
2121
cancel-in-progress: "${{ startsWith(github.ref, 'refs/pull/') }}"
22+
permissions:
23+
contents: "read"
2224
jobs:
2325
tests:
2426
name: "Tests"

.github/workflows/VersionCheck.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ name: "Version Check"
22
on:
33
pull_request: ~
44
permissions:
5-
contents: read
5+
contents: "read"
6+
pull-requests: "read"
67
jobs:
78
version-check:
89
name: "Version Check"
9-
permissions:
10-
contents: read
11-
pull-requests: read
1210
uses: "ITensor/ITensorActions/.github/workflows/VersionCheck.yml@v1"
1311
with:
1412
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Permissions-hardening canary marker — remove before merging.
21
*.cov
32
*.mem
43
*.o

0 commit comments

Comments
 (0)