Skip to content

Commit

Permalink
use GitHub personal access tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
shineyruan committed Apr 11, 2024
1 parent b5ed6a1 commit 7bbe808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
workflow_dispatch:

env:
GH_PAT: ${{ secrets.GH_PAT }}

jobs:
build:
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
Expand Down Expand Up @@ -37,5 +40,3 @@ 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: 3 additions & 2 deletions .github/workflows/build_differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: build-differential
on:
pull_request:

env:
GH_PAT: ${{ secrets.GH_PAT }}

jobs:
build-differential:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,5 +39,3 @@ 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 7bbe808

Please sign in to comment.