Skip to content

Commit

Permalink
ci: secure the NX cloud access token
Browse files Browse the repository at this point in the history
  • Loading branch information
na-ji committed Nov 30, 2024
1 parent 3ab3462 commit e27648f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ jobs:
npx nx affected --target=lint --parallel=3
parallel-commands-on-agents: |
npx nx affected --target=build --parallel=3
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 2
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

push-image:
runs-on: ubuntu-latest
Expand All @@ -35,6 +39,8 @@ jobs:
permissions:
contents: read
packages: write
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
permissions:
contents: read # for checkout

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
release:
name: Release
Expand Down
1 change: 0 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
}
},
"nxCloudAccessToken": "YzIxM2YxMDYtYTUzYi00MmI3LTg0YzAtMWI1NTNmNDVlODdmfHJlYWQtd3JpdGU=",
"useInferencePlugins": false,
"defaultBase": "main",
"release": {
Expand Down

0 comments on commit e27648f

Please sign in to comment.