Skip to content

Commit b8e1ed7

Browse files
chore: new repo templates (#2)
* chore: new repo templates * Revert "Revert "fix: yml shellchecks"" This reverts commit e377bbb. * Revert "Revert "fix: dup key in json ollama 32"" This reverts commit d19aef2. * chore: rm secrets from workflow commits * fix: bandit syntax
1 parent d19aef2 commit b8e1ed7

File tree

6 files changed

+67
-67
lines changed

6 files changed

+67
-67
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help improve burpference
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### Bug Description
10+
A clear and concise description of the bug.
11+
12+
### Steps to Reproduce
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
### Expected Behavior
19+
A clear description of what you expected to happen.
20+
21+
### Screenshots
22+
If applicable, add screenshots to help explain your problem.
23+
24+
### Environment
25+
- OS: [e.g. Windows 10, macOS 12.0]
26+
- Browser: [e.g. Chrome 96]
27+
- Extension Version: [e.g. 1.0.0]
28+
- URL being tested: [if applicable]
29+
30+
### Additional Context
31+
Add any other context about the problem here.
32+
33+
### Console Output
34+
```
35+
Paste any relevant console output here
36+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for burpference
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
### Problem Description
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
### Proposed Solution
13+
A clear and concise description of what you want to happen.
14+
15+
### Alternative Solutions
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
### Use Case
19+
Describe how this feature would be used and who would use it.
20+
21+
### Additional Context
22+
Add any other context, screenshots, or mock-ups about the feature request here.
23+
24+
### Implementation Ideas
25+
If you have any thoughts on how this could be implemented, share them here.

.github/workflows/rigging_pr_description.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- name: Get Diff
2121
id: diff
2222
run: |
23-
git fetch origin ${{ github.base_ref }}
24-
MERGE_BASE=$(git merge-base HEAD origin/${{ github.base_ref }})
23+
git fetch origin "${{ github.base_ref }}"
24+
MERGE_BASE=$(git merge-base HEAD "origin/${{ github.base_ref }}")
2525
# Encode the diff as base64 to preserve all characters
26-
DIFF=$(git diff $MERGE_BASE..HEAD | base64 -w 0)
27-
echo "diff=$DIFF" >> $GITHUB_OUTPUT
26+
DIFF=$(git diff "$MERGE_BASE"..HEAD | base64 -w 0)
27+
echo "diff=$DIFF" >> "$GITHUB_OUTPUT"
2828
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b #v5.0.3
2929
with:
3030
python-version: "3.11"

.pre-commit-config.yaml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,6 @@ repos:
1818
- id: actionlint
1919
name: Check Github Actions
2020

21-
# Secrets detection
22-
- repo: https://github.com/Yelp/detect-secrets
23-
rev: 01886c8a910c64595c47f186ca1ffc0b77fa5458 #v1.5.0
24-
hooks:
25-
- id: detect-secrets
26-
name: Detect secrets
27-
args:
28-
- '--baseline'
29-
- '.secrets.baseline'
30-
- '--exclude-files'
31-
- 'components/api/migrations/*'
32-
- '--exclude-files'
33-
- 'components/api/app/assets/*'
34-
- '--exclude-files'
35-
- '\.sops\.yaml$'
36-
- '--exclude-files'
37-
- 'secrets\.enc\.yaml$'
38-
- '--exclude-files'
39-
- 'components/strikes/*'
40-
4121
# Python linting
4222
- repo: https://github.com/astral-sh/ruff-pre-commit
4323
# Ruff version.
@@ -54,8 +34,7 @@ repos:
5434
hooks:
5535
- id: bandit
5636
name: Code security checks
57-
args: ["-c", "pyproject.toml"]
58-
additional_dependencies: ["bandit[toml]"]
37+
args: ["-r", "--level", "2", "./"]
5938

6039
- repo: local
6140
hooks:
@@ -64,4 +43,4 @@ repos:
6443
name: Check GitHub Actions for Pinned Dependencies
6544
entry: python .scripts/check_pinned_hash_dependencies.py
6645
language: python
67-
files: \.github/.*\.yml$
46+
files: \.github/.*\.yml$

configs/ollama_llama3.2_generate.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"api_type": "ollama",
33
"format": "json",
4-
"api_type": "ollama",
54
"stream": false,
65
"host": "http://localhost:11434/api/generate",
76
"model": "llama3.2"

0 commit comments

Comments
 (0)