From a1db9de509e2a7b52919aea897f82e55523e6c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Gonz=C3=A1lez=20Santamarta?= Date: Fri, 13 Dec 2024 11:53:20 +0100 Subject: [PATCH] updating workflows to use permissions --- .github/workflows/create_release.yml | 7 ++++++- .github/workflows/doxygen-deployment.yml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5ad7043..dc7bf8d 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -7,7 +7,12 @@ on: jobs: create_release: if: startsWith(github.event.head_commit.message, 'new version') + runs-on: ubuntu-latest + + permissions: + contents: write + steps: - name: Checkout code uses: actions/checkout@v4 @@ -40,7 +45,7 @@ jobs: - name: Create GitHub release uses: actions/create-release@latest env: - GITHUB_TOKEN: ${{ secrets.LLAMA_ROS_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: "${{ env.version }}" release_name: "${{ env.version }}" diff --git a/.github/workflows/doxygen-deployment.yml b/.github/workflows/doxygen-deployment.yml index c998991..0addc27 100644 --- a/.github/workflows/doxygen-deployment.yml +++ b/.github/workflows/doxygen-deployment.yml @@ -8,6 +8,10 @@ on: jobs: doxygen_generation: runs-on: ubuntu-latest + + permissions: + contents: write + steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,6 +24,6 @@ jobs: - name: Deploy Doxygen page uses: peaceiris/actions-gh-pages@v4 with: - github_token: ${{ secrets.LLAMA_ROS_GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages publish_dir: docs/html