Skip to content

Commit

Permalink
fix(core): generate permissions on github ci workflow (#19357)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry authored Sep 28, 2023
1 parent bf7e663 commit 9448b68
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
"
Expand All @@ -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
Expand All @@ -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
"
Expand Down Expand Up @@ -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
Expand All @@ -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
"
Expand All @@ -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
Expand All @@ -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
"
Expand Down Expand Up @@ -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
Expand All @@ -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
"
Expand All @@ -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
Expand All @@ -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
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 9448b68

Please sign in to comment.