From fa3a2bcf6e1539a0d7352d90bbaa1cdcbdc60fe2 Mon Sep 17 00:00:00 2001 From: Abhisek Datta Date: Fri, 20 Feb 2026 12:27:43 +0530 Subject: [PATCH 1/3] ci: Add GHA for issue triage --- .github/workflows/issue-triage.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/issue-triage.yml diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml new file mode 100644 index 0000000..8e7b3a6 --- /dev/null +++ b/.github/workflows/issue-triage.yml @@ -0,0 +1,31 @@ +name: Issue Triage + +on: + issues: + types: [opened] + +# Minimal permissions - only what's needed to add a label. +# Project access is handled by PROJECT_TOKEN secret. +permissions: + issues: write + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - name: Add to SafeDep Operations project + uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2 + with: + project-url: https://github.com/orgs/safedep/projects/5 + github-token: ${{ secrets.ISSUE_TRIAGE_GITHUB_TOKEN }} + + - name: Add need-analysis label + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + with: + script: | + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['need-analysis'] + }); From a53a6334ec628d4190b200a46a2cb9b1d2263c25 Mon Sep 17 00:00:00 2001 From: Abhisek Datta Date: Fri, 20 Feb 2026 12:38:57 +0530 Subject: [PATCH 2/3] Update .github/workflows/issue-triage.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Abhisek Datta --- .github/workflows/issue-triage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 8e7b3a6..6ac60ca 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -12,6 +12,7 @@ permissions: jobs: triage: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Add to SafeDep Operations project uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2 From b2525bc7467a439ac25b7a0bd85fce9c44bcb73c Mon Sep 17 00:00:00 2001 From: Abhisek Datta Date: Fri, 20 Feb 2026 12:39:08 +0530 Subject: [PATCH 3/3] Update .github/workflows/issue-triage.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Abhisek Datta --- .github/workflows/issue-triage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 6ac60ca..0b887fe 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -5,7 +5,7 @@ on: types: [opened] # Minimal permissions - only what's needed to add a label. -# Project access is handled by PROJECT_TOKEN secret. +# Project access is handled by ISSUE_TRIAGE_GITHUB_TOKEN secret. permissions: issues: write