Skip to content

Commit

Permalink
updating workflows to use permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Dec 13, 2024
1 parent 3679ba1 commit a1db9de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/doxygen-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
jobs:
doxygen_generation:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -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

0 comments on commit a1db9de

Please sign in to comment.