Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: update bug report issue template

Sheen Capadngan42b6c5069095
diff --git a/.github/ISSUE_TEMPLATE/1.bug_report.md b/.github/ISSUE_TEMPLATE/1.bug_report.md
deleted file mode 100644
index 3964cd60bf..0000000000
--- a/.github/ISSUE_TEMPLATE/1.bug_report.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve
-title: ''
-labels: bug
-assignees: ''
-
----
-
-### Describe the bug
-A clear and concise description of what the bug is.
-
-### To Reproduce
-Steps to reproduce the behavior:
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
-
-### Expected behavior
-A clear and concise description of what you expected to happen.
-
-### Screenshots
-If applicable, add screenshots to help explain your problem.
-
-### Platform you are having the issue on:
-
-### Additional context
-Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/1.bug_report.yml b/.github/ISSUE_TEMPLATE/1.bug_report.yml
new file mode 100644
index 0000000000..5a31fc6270
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/1.bug_report.yml
@@ -0,0 +1,75 @@
+name: Bug report
+description: Create a report to help us improve
+labels: [bug]
+body:
+ - type: dropdown
+ id: product
+ attributes:
+ label: Product
+ description: Which Infisical product is this bug related to?
+ options:
+ - Platform (General/Multiple Products)
+ - Secret Manager
+ - Certificate Manager (PKI)
+ - KMS
+ - Secret Scanning
+ - Privileged Access Manager (PAM)
+ validations:
+ required: true
+
+ - type: textarea
+ id: description
+ attributes:
+ label: Describe the bug
+ description: A clear and concise description of what the bug is.
+ placeholder: Tell us what happened...
+ validations:
+ required: true
+
+ - type: textarea
+ id: reproduce
+ attributes:
+ label: To Reproduce
+ description: Steps to reproduce the behavior
+ placeholder: |
+ 1. Go to '...'
+ 2. Click on '...'
+ 3. Scroll down to '...'
+ 4. See error
+ validations:
+ required: true
+
+ - type: textarea
+ id: expected
+ attributes:
+ label: Expected behavior
+ description: A clear and concise description of what you expected to happen.
+ validations:
+ required: false
+
+ - type: textarea
+ id: screenshots
+ attributes:
+ label: Screenshots
+ description: If applicable, add screenshots to help explain your problem.
+ validations:
+ required: false
+
+ - type: dropdown
+ id: platform
+ attributes:
+ label: Platform
+ description: What platform are you experiencing the issue on?
+ options:
+ - Infisical Cloud
+ - Self-hosted
+ validations:
+ required: true
+
+ - type: textarea
+ id: additional
+ attributes:
+ label: Additional context
+ description: Add any other context about the problem here (e.g., version numbers, browser, OS).
+ validations:
+ required: false
diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml
new file mode 100644
index 0000000000..1fe8acbfaf
--- /dev/null
+++ b/.github/workflows/issue-labeler.yml
@@ -0,0 +1,57 @@
+name: Issue Product Labeler
+
+on:
+ issues:
+ types: [opened]
+
+jobs:
+ add-product-label:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ steps:
+ - name: Add product label based on issue form selection
+ uses: actions/github-script@v7
+ with:
+ script: |
+ const body = context.payload.issue.body || '';
+
+ const productLabels = {
+ 'Platform (General/Multiple Products)': 'product:platform',
+ 'Secret Manager': 'product:secret-manager',
+ 'Certificate Manager (PKI)': 'product:pki',
+ 'KMS': 'product:kms',
+ 'Secret Scanning': 'product:secret-scanning',
+ 'Privileged Access Manager (PAM)': 'product:pam'
+ };
+
+ const platformLabels = {
+ 'Infisical Cloud': 'platform:cloud',
+ 'Self-hosted': 'platform:self-hosted'
+ };
+
+ const labelsToAdd = [];
+
+ for (const [product, label] of Object.entries(productLabels)) {
+ if (body.includes(product)) {
+ labelsToAdd.push(label);
+ break;
+ }
+ }
+
+ for (const [platform, label] of Object.entries(platformLabels)) {
+ if (body.includes(platform)) {
+ labelsToAdd.push(label);
+ break;
+ }
+ }
+
+ if (labelsToAdd.length > 0) {
+ await github.rest.issues.addLabels({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ issue_number: context.issue.number,
+ labels: labelsToAdd
+ });
+ console.log(`Added labels: ${labelsToAdd.join(', ')}`);
+ }