From c9450e07bbfb4d95a5b60a6fc758871f36194e49 Mon Sep 17 00:00:00 2001 From: Aaron Castro Date: Fri, 12 Apr 2024 12:05:42 -0600 Subject: [PATCH] adding permissions to `GITHUB_TOKEN` (#14) --- .github/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f22d9575..d3391e34 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,7 +8,8 @@ on: pull_request: branches: - main - +permissions: + contents: write env: # HOME required by Setup Git and Setup Go Steps HOME: ${{ github.workspace }} @@ -104,3 +105,4 @@ jobs: if [[ $CI_NODE_INDEX = "build" && $TRAVIS_PULL_REQUEST == 'false' ]]; then bundle exec rake download_policy_list; bundle exec middleman deploy; fi env: CI_NODE_INDEX: ${{ matrix.index }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}