From 118151999ff9da143835fe665096d4a4f3cdbaf5 Mon Sep 17 00:00:00 2001 From: D050513 Date: Wed, 4 Jun 2025 17:36:54 +0200 Subject: [PATCH 1/2] chore: streamline workflows --- .github/workflows/ci.yml | 3 +++ .github/workflows/label-issues.yml | 7 +++++-- .github/workflows/release.yml | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3390b81f..e43d15d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: CI +permissions: + contents: read + on: workflow_dispatch: push: diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 88008715..7e570a4e 100644 --- a/.github/workflows/label-issues.yml +++ b/.github/workflows/label-issues.yml @@ -1,14 +1,17 @@ name: Label issues + +permissions: + issues: write + on: issues: types: - reopened - opened + jobs: label_issues: runs-on: ubuntu-latest - permissions: - issues: write steps: - run: gh issue edit "$NUMBER" --add-label "$LABELS" env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5cc55db..a8173640 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,11 @@ name: Release -on: - workflow_dispatch: - permissions: contents: write +on: + workflow_dispatch: + jobs: publish-npm: runs-on: ubuntu-latest From d91579783006980e31ee7e53a07e98f3da327b44 Mon Sep 17 00:00:00 2001 From: sjvans <30337871+sjvans@users.noreply.github.com> Date: Thu, 5 Jun 2025 23:11:02 +0200 Subject: [PATCH 2/2] Update .github/workflows/ci.yml --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac597b47..62d875bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,4 @@ name: CI -permissions: - contents: read permissions: contents: read