Skip to content

Commit 8b76330

Browse files
committed
feat: add structured issue templates and security workflow
- Add bug report template with platform, version, and reproduction steps - Add feature request template with priority and context fields - Add CodeQL security analysis workflow - Add dependency review for pull requests
1 parent a32faf2 commit 8b76330

File tree

3 files changed

+197
-0
lines changed

3 files changed

+197
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Bug Report
2+
description: File a bug report to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report!
12+
13+
- type: input
14+
id: version
15+
attributes:
16+
label: Version
17+
description: What version of supabase-swift are you running?
18+
placeholder: ex. 2.31.2
19+
validations:
20+
required: true
21+
22+
- type: dropdown
23+
id: platform
24+
attributes:
25+
label: Platform
26+
description: What platform are you using?
27+
options:
28+
- iOS
29+
- macOS
30+
- tvOS
31+
- watchOS
32+
- visionOS
33+
- Linux
34+
- Other
35+
validations:
36+
required: true
37+
38+
- type: input
39+
id: swift-version
40+
attributes:
41+
label: Swift Version
42+
description: What version of Swift are you using?
43+
placeholder: ex. 5.10
44+
validations:
45+
required: true
46+
47+
- type: textarea
48+
id: what-happened
49+
attributes:
50+
label: What happened?
51+
description: Also tell us, what did you expect to happen?
52+
placeholder: Tell us what you see!
53+
validations:
54+
required: true
55+
56+
- type: textarea
57+
id: reproduce
58+
attributes:
59+
label: Steps to Reproduce
60+
description: Please provide clear steps to reproduce the issue
61+
placeholder: |
62+
1. Import Supabase
63+
2. Create client with '...'
64+
3. Call method '...'
65+
4. See error
66+
validations:
67+
required: true
68+
69+
- type: textarea
70+
id: code-sample
71+
attributes:
72+
label: Code Sample
73+
description: Please provide a minimal code sample that reproduces the issue
74+
render: swift
75+
76+
- type: textarea
77+
id: logs
78+
attributes:
79+
label: Relevant log output
80+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
81+
render: shell
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Feature Request
2+
description: Suggest an idea for supabase-swift
3+
title: "[Feature]: "
4+
labels: ["enhancement", "triage"]
5+
assignees: []
6+
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for suggesting a new feature! Please fill out the sections below.
12+
13+
- type: checkboxes
14+
id: search
15+
attributes:
16+
label: Searched existing issues?
17+
description: Please search existing issues to avoid duplicates
18+
options:
19+
- label: I have searched the existing issues
20+
required: true
21+
22+
- type: textarea
23+
id: problem
24+
attributes:
25+
label: Problem Description
26+
description: Is your feature request related to a problem? Please describe.
27+
placeholder: I'm always frustrated when...
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: solution
33+
attributes:
34+
label: Proposed Solution
35+
description: Describe the solution you'd like
36+
placeholder: I would like to see...
37+
validations:
38+
required: true
39+
40+
- type: textarea
41+
id: alternatives
42+
attributes:
43+
label: Alternative Solutions
44+
description: Describe any alternative solutions or features you've considered
45+
46+
- type: dropdown
47+
id: priority
48+
attributes:
49+
label: Priority
50+
description: How important is this feature to you?
51+
options:
52+
- Low - Nice to have
53+
- Medium - Would significantly improve my workflow
54+
- High - Blocking my use case
55+
validations:
56+
required: true
57+
58+
- type: textarea
59+
id: context
60+
attributes:
61+
label: Additional Context
62+
description: Add any other context, screenshots, or examples about the feature request

.github/workflows/security.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Security
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 0 * * 1' # Weekly on Mondays
10+
11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
15+
16+
jobs:
17+
codeql:
18+
name: CodeQL Analysis
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 360
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ swift ]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
queries: +security-and-quality
35+
36+
- name: Autobuild
37+
uses: github/codeql-action/autobuild@v3
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v3
41+
with:
42+
category: "/language:${{matrix.language}}"
43+
44+
dependency-review:
45+
name: Dependency Review
46+
runs-on: ubuntu-latest
47+
if: github.event_name == 'pull_request'
48+
steps:
49+
- name: Checkout repository
50+
uses: actions/checkout@v4
51+
- name: Dependency Review
52+
uses: actions/dependency-review-action@v4
53+
with:
54+
fail-on-severity: moderate

0 commit comments

Comments
 (0)