Skip to content

Commit 13d2fae

Browse files
committed
[PATCH] Apply workflow_security_rollout patch
1 parent 32eb215 commit 13d2fae

12 files changed

Lines changed: 42 additions & 38 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: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ on:
33
push:
44
branches:
55
- "main"
6-
paths:
7-
- "Project.toml"
8-
pull_request_target:
6+
tags: "*"
7+
pull_request:
98
types:
109
- "opened"
1110
- "synchronize"
@@ -15,25 +14,12 @@ on:
1514
jobs:
1615
integration-test:
1716
name: "IntegrationTest"
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
pkg:
22-
- "ITensorNetworks"
23-
- "ITensorNetworksNext"
24-
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
17+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@v1"
2518
secrets: "inherit"
2619
with:
2720
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
28-
pkg: "${{ matrix.pkg }}"
29-
integration-gate:
30-
name: "IntegrationTest"
31-
needs: "integration-test"
32-
if: "${{ always() && needs.integration-test.result != 'skipped' }}"
33-
runs-on: "ubuntu-latest"
34-
steps:
35-
- name: "Fail if any downstream integration test failed"
36-
run: |
37-
echo "integration-test.result = ${{ needs.integration-test.result }}"
38-
test "${{ needs.integration-test.result }}" = "success"
39-
21+
pkgs: |-
22+
[
23+
"ITensorNetworks",
24+
"ITensorNetworksNext"
25+
]

.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)