From 6066c0c6d06c3ebd781da0eaae7890685faf8987 Mon Sep 17 00:00:00 2001 From: andrew tejero Date: Wed, 27 Nov 2024 08:46:46 -0800 Subject: [PATCH] updated release.yml + python-test.yml to include more scoped permissions as per issue dash-ag-grid#337 --- .github/workflows/python-test.yml | 3 +++ .github/workflows/release.yml | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 9b53b67..6d56e4d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -1,5 +1,8 @@ name: Run tests +permissions: + contents: read + on: push: branches: [main] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b3c4d2..64b5e5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Generate release +permissions: + contents: read + on: push: tags: @@ -10,7 +13,7 @@ jobs: release: runs-on: ubuntu-latest permissions: - contents: write + contents: read steps: - uses: actions/checkout@v4 - name: Reuse Build and Validate Workflow @@ -21,4 +24,4 @@ jobs: - uses: ncipollo/release-action@v1 with: artifacts: "dist/*.whl,dist/*.tar.gz" - draft: true \ No newline at end of file + draft: true