-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): generate permissions on github ci workflow (#19357)
- Loading branch information
1 parent
bf7e663
commit 9448b68
Showing
2 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,10 +186,15 @@ on: | |
- main | ||
pull_request: | ||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
|
@@ -204,7 +209,7 @@ jobs: | |
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 | ||
" | ||
|
@@ -219,10 +224,15 @@ on: | |
- main | ||
pull_request: | ||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
|
@@ -237,7 +247,7 @@ jobs: | |
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 | ||
" | ||
|
@@ -480,10 +490,15 @@ on: | |
- main | ||
pull_request: | ||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
|
@@ -498,7 +513,7 @@ jobs: | |
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 | ||
" | ||
|
@@ -513,10 +528,15 @@ on: | |
- main | ||
pull_request: | ||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
|
@@ -531,7 +551,7 @@ jobs: | |
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 | ||
" | ||
|
@@ -774,10 +794,15 @@ on: | |
- main | ||
pull_request: | ||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
|
@@ -792,7 +817,7 @@ jobs: | |
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 | ||
" | ||
|
@@ -807,10 +832,15 @@ on: | |
- main | ||
pull_request: | ||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the main branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
|
@@ -825,7 +855,7 @@ jobs: | |
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 | ||
" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,15 @@ on: | |
- <%= mainBranch %> | ||
pull_request: | ||
|
||
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the <%= mainBranch %> branch | ||
permissions: | ||
actions: read | ||
contents: read | ||
|
||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
main-branch-name: <%= mainBranch %> | ||
number-of-agents: 3 | ||
|
@@ -24,6 +29,6 @@ jobs: | |
|
||
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/[email protected].0 | ||
uses: nrwl/ci/.github/workflows/[email protected].1 | ||
with: | ||
number-of-agents: 3 |