From e5423c93ec923cfa7948f3888b282e494ec01f9f Mon Sep 17 00:00:00 2001 From: jean-philippe bazonnais Date: Wed, 30 Aug 2023 07:55:49 +0200 Subject: [PATCH 1/3] Update release.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout tag permissions sur la création des releases. --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48aaf0cb..90297075 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,6 +166,7 @@ jobs: if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! needs: build runs-on: ubuntu-latest + permissions: write-all steps: - name: Checkout uses: actions/checkout@v2 @@ -237,6 +238,7 @@ jobs: if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! needs: create_release runs-on: ubuntu-latest + permissions: write-all steps: - name: Checkout uses: actions/checkout@v2 @@ -267,6 +269,7 @@ jobs: if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! needs: publish_package runs-on: ubuntu-latest + permissions: write-all steps: - name: Checkout uses: actions/checkout@v2 From 4325363b4e6706f1deadd8102c6dd5867f6857e1 Mon Sep 17 00:00:00 2001 From: jean-philippe bazonnais Date: Wed, 30 Aug 2023 10:26:33 +0200 Subject: [PATCH 2/3] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90297075..904551b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,8 @@ on: tags: - '*' +permissions: write-all + jobs: build: @@ -166,7 +168,6 @@ jobs: if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! needs: build runs-on: ubuntu-latest - permissions: write-all steps: - name: Checkout uses: actions/checkout@v2 @@ -238,7 +239,6 @@ jobs: if: github.event_name == 'push' && contains(github.ref, '/tags/') # Only for tags ! needs: create_release runs-on: ubuntu-latest - permissions: write-all steps: - name: Checkout uses: actions/checkout@v2 From e83e1ac89abce9e2fe6314b1390c97f9262e89f0 Mon Sep 17 00:00:00 2001 From: jean-philippe bazonnais Date: Wed, 30 Aug 2023 10:34:52 +0200 Subject: [PATCH 3/3] Update release.yml test avec un autre "secrets" --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 904551b0..6045aa24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -176,7 +176,7 @@ jobs: id: create_release uses: actions/create-release@v1.1.2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ADMIN_GEOPORTAL_TOKEN }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} @@ -197,7 +197,7 @@ jobs: - name: Upload Release Asset (bundles) # FIXME inutile ? uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ADMIN_GEOPORTAL_TOKEN}} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./bundles.zip @@ -207,7 +207,7 @@ jobs: - name: Upload Release Asset (1) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ADMIN_GEOPORTAL_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./GpServices.js @@ -217,7 +217,7 @@ jobs: - name: Upload Release Asset (2) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ADMIN_GEOPORTAL_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./GpServices-src.js @@ -227,7 +227,7 @@ jobs: - name: Upload Release Asset (3) uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ADMIN_GEOPORTAL_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./GpServices-map.js