From 53810edcc0354fd4276bbeacc12243aa26dcc33e Mon Sep 17 00:00:00 2001 From: Vignesh Kennadi Date: Fri, 27 Sep 2024 15:20:56 +0530 Subject: [PATCH] adds permissions --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 873320d0..79c02b0d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,9 @@ on: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - name: Checkout xero-node repo uses: actions/checkout@v4 @@ -20,6 +23,7 @@ jobs: node-version: 20 cache: 'npm' cache-dependency-path: '**/package-lock.json' + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci