Skip to content

Commit

Permalink
remove unnecessary permission; add Github Action env token
Browse files Browse the repository at this point in the history
  • Loading branch information
shineyruan committed Apr 11, 2024
1 parent e1db70c commit b5ed6a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
workflow_dispatch:

permissions:
actions: write

jobs:
build:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
Expand Down Expand Up @@ -40,3 +37,5 @@ jobs:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_ACTIONS_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/build_differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: build-differential
on:
pull_request:

permissions:
actions: write

jobs:
build-differential:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,3 +36,5 @@ jobs:
rosdistro: ${{ matrix.rosdistro }}
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: ${{ matrix.build-depends-repos }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_ACTIONS_TOKEN }}

0 comments on commit b5ed6a1

Please sign in to comment.