Skip to content

Commit 7c0e2d3

Browse files
ITensorBotmtfishmanpre-commit-ci[bot]
authored
[PATCH] Apply workflow_security_rollout patch (#156)
This PR applies the workflow_security_rollout patch. --------- Co-authored-by: ITensorBot <278814285+ITensorBot@users.noreply.github.com> Co-authored-by: Matthew Fishman <mtfishman@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 80631a2 commit 7c0e2d3

12 files changed

Lines changed: 41 additions & 35 deletions

.github/workflows/CheckCompatBounds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ on:
44
jobs:
55
check-compat-bounds:
66
name: "Check Compat Bounds"
7-
uses: "ITensor/ITensorActions/.github/workflows/CheckCompatBounds.yml@main"
7+
uses: "ITensor/ITensorActions/.github/workflows/CheckCompatBounds.yml@v1"
88
with:
99
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
compat-helper:
1111
name: "CompatHelper"
12-
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@main"
12+
uses: "ITensor/ITensorActions/.github/workflows/CompatHelper.yml@v1"
1313
with:
1414
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
1515
secrets: "inherit"

.github/workflows/Documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
build-and-deploy-docs:
1515
name: "Documentation"
16-
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@main"
16+
uses: "ITensor/ITensorActions/.github/workflows/Documentation.yml@v1"
1717
with:
1818
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
1919
secrets:

.github/workflows/FormatCheck.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: "Format Check"
22
on:
3-
pull_request_target:
3+
pull_request:
44
types:
55
- "opened"
66
- "synchronize"
77
- "reopened"
88
- "ready_for_review"
9-
permissions:
10-
contents: "read"
11-
actions: "write"
12-
pull-requests: "write"
139
jobs:
1410
format-check:
1511
name: "Format Check"
16-
uses: "ITensor/ITensorActions/.github/workflows/FormatCheck.yml@main"
12+
uses: "ITensor/ITensorActions/.github/workflows/FormatCheck.yml@v1"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Format Check Comment"
2+
on:
3+
workflow_run:
4+
workflows:
5+
- "Format Check"
6+
types:
7+
- "completed"
8+
jobs:
9+
comment:
10+
name: "Format Check Comment"
11+
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"
16+
secrets: "inherit"

.github/workflows/FormatPullRequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ permissions:
1212
jobs:
1313
format-pull-request:
1414
name: "Format Pull Request"
15-
uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@main"
15+
uses: "ITensor/ITensorActions/.github/workflows/FormatPullRequest.yml@v1"
1616
secrets: "inherit"

.github/workflows/IntegrationTest.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ on:
33
push:
44
branches:
55
- "main"
6-
pull_request_target:
6+
tags: "*"
7+
pull_request:
78
types:
89
- "opened"
910
- "synchronize"
@@ -13,24 +14,11 @@ on:
1314
jobs:
1415
integration-test:
1516
name: "IntegrationTest"
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
pkg:
20-
- "ITensorNetworksNext"
21-
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
17+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@v1"
2218
secrets: "inherit"
2319
with:
2420
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
25-
pkg: "${{ matrix.pkg }}"
26-
integration-gate:
27-
name: "IntegrationTest"
28-
needs: "integration-test"
29-
if: "${{ always() && needs.integration-test.result != 'skipped' }}"
30-
runs-on: "ubuntu-latest"
31-
steps:
32-
- name: "Fail if any downstream integration test failed"
33-
run: |
34-
echo "integration-test.result = ${{ needs.integration-test.result }}"
35-
test "${{ needs.integration-test.result }}" = "success"
36-
21+
pkgs: |
22+
[
23+
"ITensorNetworksNext"
24+
]

.github/workflows/IntegrationTestRequest.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ on:
33
issue_comment:
44
types:
55
- "created"
6+
permissions:
7+
actions: "read"
8+
contents: "read"
9+
checks: "write"
10+
pull-requests: "write"
611
jobs:
712
integrationrequest:
813
if: |
914
github.event.issue.pull_request &&
1015
contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association)
11-
12-
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main"
16+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@v1"
17+
secrets: "inherit"
1318
with:
1419
localregistry: "https://github.com/ITensor/ITensorRegistry.git"

.github/workflows/Registrator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
issues: "write"
1717
jobs:
1818
Register:
19-
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main"
19+
uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@v1"
2020
with:
2121
localregistry: "ITensor/ITensorRegistry"
2222
secrets: "inherit"

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ env:
99
jobs:
1010
TagBot:
1111
if: "github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'"
12-
uses: "ITensor/ITensorActions/.github/workflows/TagBot.yml@main"
12+
uses: "ITensor/ITensorActions/.github/workflows/TagBot.yml@v1"
1313
secrets: "inherit"

0 commit comments

Comments
 (0)