Skip to content

Commit 8d72cb0

Browse files
authored
[PATCH] Apply workflow_security_rollout patch (#266)
This PR applies the workflow_security_rollout patch. Co-authored-by: ITensorBot <278814285+ITensorBot@users.noreply.github.com>
1 parent 77297b4 commit 8d72cb0

12 files changed

Lines changed: 54 additions & 34 deletions
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: "Check Compat Bounds"
1+
name: "CheckCompatBounds"
22
on:
33
pull_request: ~
4+
permissions:
5+
contents: "read"
46
jobs:
57
check-compat-bounds:
6-
name: "Check Compat Bounds"
7-
uses: "ITensor/ITensorActions/.github/workflows/CheckCompatBounds.yml@v1"
8+
name: "CheckCompatBounds"
9+
uses: "ITensor/ITensorActions/.github/workflows/CheckCompatBounds.yml@v2"
810
with:
911
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/CompatHelper.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ permissions:
77
contents: "write"
88
pull-requests: "write"
99
jobs:
10-
compat-helper:
10+
compathelper:
1111
name: "CompatHelper"
12-
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@v1"
12+
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@v2"
1313
with:
1414
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
1515
secrets: "inherit"

.github/workflows/Documentation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ on:
1010
concurrency:
1111
group: "${{ github.workflow }}-${{ github.ref }}"
1212
cancel-in-progress: "${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}"
13+
permissions:
14+
contents: "write"
1315
jobs:
14-
build-and-deploy-docs:
16+
documentation:
1517
name: "Documentation"
16-
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@v1"
18+
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@v2"
1719
with:
1820
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
1921
secrets:

.github/workflows/FormatCheck.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
name: "Format Check"
1+
name: "FormatCheck"
22
on:
33
pull_request:
44
types:
55
- "opened"
66
- "synchronize"
77
- "reopened"
88
- "ready_for_review"
9+
permissions:
10+
contents: "read"
911
jobs:
1012
format-check:
11-
name: "Format Check"
12-
uses: "ITensor/ITensorActions/.github/workflows/FormatCheck.yml@v1"
13+
name: "FormatCheck"
14+
uses: "ITensor/ITensorActions/.github/workflows/FormatCheck.yml@v2"
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: "Format Check Comment"
1+
name: "FormatCheckComment"
22
on:
33
workflow_run:
44
workflows:
5-
- "Format Check"
5+
- "FormatCheck"
66
types:
77
- "completed"
8+
permissions:
9+
pull-requests: "write"
10+
actions: "read"
811
jobs:
9-
comment:
10-
name: "Format Check Comment"
12+
format-check-comment:
13+
name: "FormatCheckComment"
1114
if: "github.event.workflow_run.event == 'pull_request'"
12-
permissions:
13-
pull-requests: "write"
14-
actions: "read"
15-
uses: "ITensor/ITensorActions/.github/workflows/FormatCheckComment.yml@v1"
15+
uses: "ITensor/ITensorActions/.github/workflows/FormatCheckComment.yml@v2"
1616
secrets: "inherit"

.github/workflows/FormatPullRequest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Format Pull Request"
1+
name: "FormatPullRequest"
22
on:
33
schedule:
44
- cron: "0 0 * * *"
@@ -11,6 +11,6 @@ permissions:
1111
pull-requests: "write"
1212
jobs:
1313
format-pull-request:
14-
name: "Format Pull Request"
15-
uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@v1"
14+
name: "FormatPullRequest"
15+
uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@v2"
1616
secrets: "inherit"

.github/workflows/IntegrationTest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ on:
1111
- "reopened"
1212
- "ready_for_review"
1313
- "converted_to_draft"
14+
permissions:
15+
actions: "read"
16+
contents: "read"
1417
jobs:
1518
integration-test:
1619
name: "IntegrationTest"
17-
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@v1"
20+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@v2"
1821
secrets: "inherit"
1922
with:
2023
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Integration Test Request"
1+
name: "IntegrationTestRequest"
22
on:
33
issue_comment:
44
types:
@@ -9,11 +9,12 @@ permissions:
99
checks: "write"
1010
pull-requests: "write"
1111
jobs:
12-
integrationrequest:
12+
integration-test-request:
13+
name: "IntegrationTestRequest"
1314
if: |
1415
github.event.issue.pull_request &&
1516
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
16-
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@v1"
17+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@v2"
1718
secrets: "inherit"
1819
with:
1920
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/Registrator.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Register Package"
1+
name: "Registrator"
22
on:
33
workflow_dispatch: ~
44
push:
@@ -15,8 +15,9 @@ permissions:
1515
pull-requests: "write"
1616
issues: "write"
1717
jobs:
18-
Register:
19-
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@v1"
18+
registrator:
19+
name: "Registrator"
20+
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@v2"
2021
with:
2122
localregistry: "ITensor/ITensorRegistry"
2223
secrets: "inherit"

.github/workflows/TagBot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ on:
66
workflow_dispatch: ~
77
env:
88
REGISTRY_TAGBOT_ACTION: "JuliaRegistries/TagBot"
9+
permissions:
10+
contents: "write"
11+
issues: "read"
912
jobs:
10-
TagBot:
13+
tagbot:
14+
name: "TagBot"
1115
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"
12-
uses: "ITensor/ITensorActions/.github/workflows/TagBot.yml@v1"
16+
uses: "ITensor/ITensorActions/.github/workflows/TagBot.yml@v2"
1317
secrets: "inherit"

0 commit comments

Comments
 (0)