From 0ee160cd15c2ce04fb6fce36753a2b4da29a404f Mon Sep 17 00:00:00 2001 From: Liz Fong-Jones Date: Mon, 11 Dec 2023 02:17:11 -0500 Subject: [PATCH] fix(gha): fix more perms issues (#27) --- .github/workflows/apply-labels.yml | 5 ++++- .github/workflows/validate-pr-title.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/apply-labels.yml b/.github/workflows/apply-labels.yml index f6fd85a..f757922 100644 --- a/.github/workflows/apply-labels.yml +++ b/.github/workflows/apply-labels.yml @@ -2,8 +2,11 @@ name: Apply project labels on: [issues, pull_request_target, label] jobs: apply-labels: - runs-on: ubuntu-latest name: Apply common project labels + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: honeycombio/oss-management/labels@v1 with: diff --git a/.github/workflows/validate-pr-title.yml b/.github/workflows/validate-pr-title.yml index 697147e..a9cfdcb 100644 --- a/.github/workflows/validate-pr-title.yml +++ b/.github/workflows/validate-pr-title.yml @@ -11,6 +11,9 @@ jobs: main: name: Validate PR title runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: amannn/action-semantic-pull-request@v5 id: lint_pr_title