From b5ed6a117cd827c6ba52bb776aa8377ecd9a394c Mon Sep 17 00:00:00 2001 From: Zhihao Ruan Date: Thu, 11 Apr 2024 00:55:29 -0700 Subject: [PATCH] remove unnecessary permission; add Github Action env token --- .github/workflows/build.yaml | 5 ++--- .github/workflows/build_differential.yaml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ebb745c..5464721 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 }} @@ -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 }} diff --git a/.github/workflows/build_differential.yaml b/.github/workflows/build_differential.yaml index eb1b2b3..e663647 100644 --- a/.github/workflows/build_differential.yaml +++ b/.github/workflows/build_differential.yaml @@ -3,9 +3,6 @@ name: build-differential on: pull_request: -permissions: - actions: write - jobs: build-differential: runs-on: ubuntu-latest @@ -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 }}