Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 436fc0a

Browse files
authored
Merge pull request #27 from TezRomacH/feature/security
🔒 added SECURITY.md and configs
2 parents 007b83d + 90011cf commit 436fc0a

File tree

10 files changed

+94
-3
lines changed

10 files changed

+94
-3
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Configuration: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository
2+
3+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/security.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: 🔐 Security Issue
3+
about: Reporting Security Issues ❗️
4+
title: ''
5+
labels: security
6+
assignees:
7+
---
8+
9+
## 🔐 Reporting Security Issues
10+
11+
> Do not open issues that might have security implications!
12+
> It is critical that security related issues
13+
are reported privately so we have time to address them before they become public knowledge
14+
15+
## ❗️ Read [`SECURITY.md`](https://github.com/TezRomacH/python-package-template/blob/master/SECURITY.md) to know how to report security issues

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [ ] 🥂 Improvement (non-breaking change which improves an existing feature)
1616
- [ ] 🚀 New feature (non-breaking change which adds functionality)
1717
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
18+
- [ ] 🔐 Security fix
1819

1920
## Checklist
2021

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For building and deployment:
4949
For creating your open source community:
5050

5151
- Ready-to-use [Pull Requests templates](https://github.com/TezRomacH/python-package-template/blob/master/%7B%7B%20cookiecutter.project_name%20%7D%7D/.github/PULL_REQUEST_TEMPLATE.md) and several [Issue templates](https://github.com/TezRomacH/python-package-template/tree/master/%7B%7B%20cookiecutter.project_name%20%7D%7D/.github/ISSUE_TEMPLATE).
52-
- Files such as: `LICENSE`, `CONTRIBUTING.md`, and `CODE_OF_CONDUCT.md` are generated automatically.
52+
- Files such as: `LICENSE`, `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, and `SECURITY.md` are generated automatically.
5353
- [`Stale bot`](https://github.com/apps/stale) that closes abandoned issues after a period of inactivity. (You will only [need to setup free plan](https://github.com/marketplace/stale)). Configuration is [here](https://github.com/TezRomacH/python-package-template/blob/master/%7B%7B%20cookiecutter.project_name%20%7D%7D/.github/.stale.yml).
5454
- [Semantic Versions](https://semver.org/) specification with [`Release Drafter`](https://github.com/marketplace/actions/release-drafter).
5555

@@ -354,7 +354,6 @@ Here is a list of things that have yet to be implemented:
354354
- Code metrics with [`Radon`](https://github.com/rubik/radon).
355355
- Docstring coverage with [`interrogate`](https://github.com/econchick/interrogate)
356356
- `Dockerfile` linting with [`dockerfilelint`](https://github.com/replicatedhq/dockerfilelint).
357-
- Add `SECURITY.md` and `security_report.md` to issue templates. Add security checkbox in `pull_request_template.md`.
358357
- [Hall of fame](https://github.com/sourcerer-io/hall-of-fame) from `Sourcerer`.
359358
- Some advanced Python linting (?).
360359
- Update `pre-commit` hooks to [locals](https://pre-commit.com/#repository-local-hooks) (?).

SECURITY.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Security
2+
3+
## 🔐 Reporting Security Issues
4+
5+
> Do not open issues that might have security implications!
6+
> It is critical that security related issues are reported privately so we have time to address them before they become public knowledge.
7+
8+
Vulnerabilities can be reported by emailing core members:
9+
10+
- Roman Tezikov [[email protected]](mailto:[email protected])
11+
12+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
13+
14+
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
15+
- Full paths of source file(s) related to the manifestation of the issue
16+
- The location of the affected source code (tag/branch/commit or direct URL)
17+
- Any special configuration required to reproduce the issue
18+
- Environment (e.g. Linux / Windows / macOS)
19+
- Step-by-step instructions to reproduce the issue
20+
- Proof-of-concept or exploit code (if possible)
21+
- Impact of the issue, including how an attacker might exploit the issue
22+
23+
This information will help us triage your report more quickly.
24+
25+
## Preferred Languages
26+
27+
We prefer all communications to be in English.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Configuration: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository
2+
3+
blank_issues_enabled: false
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: 🔐 Security Issue
3+
about: Reporting Security Issues ❗️
4+
title: ''
5+
labels: security
6+
assignees:
7+
---
8+
9+
## 🔐 Reporting Security Issues
10+
11+
> Do not open issues that might have security implications!
12+
> It is critical that security related issues
13+
are reported privately so we have time to address them before they become public knowledge
14+
15+
## ❗️ Read [`SECURITY.md`](https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}/blob/master/SECURITY.md) to know how to report security issues

{{ cookiecutter.project_name }}/.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [ ] 🥂 Improvement (non-breaking change which improves an existing feature)
1616
- [ ] 🚀 New feature (non-breaking change which adds functionality)
1717
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
18+
- [ ] 🔐 Security fix
1819

1920
## Checklist
2021

{{ cookiecutter.project_name }}/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ For building and deployment:
121121
For creating your open source community:
122122

123123
- Ready-to-use [Pull Requests templates](https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}/blob/master/.github/PULL_REQUEST_TEMPLATE.md) and several [Issue templates](https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}/tree/master/.github/ISSUE_TEMPLATE).
124-
- Files such as: `LICENSE`, `CONTRIBUTING.md`, and `CODE_OF_CONDUCT.md` are generated automatically.
124+
- Files such as: `LICENSE`, `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, and `SECURITY.md` are generated automatically.
125125
- [`Stale bot`](https://github.com/apps/stale) that closes abandoned issues after a period of inactivity. (You will only [need to setup free plan](https://github.com/marketplace/stale)). Configuration is [here](https://github.com/{{ cookiecutter.github_name }}/{{ cookiecutter.project_name }}/blob/master/.github/.stale.yml).
126126
- [Semantic Versions](https://semver.org/) specification with [`Release Drafter`](https://github.com/marketplace/actions/release-drafter).
127127

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Security
2+
3+
## 🔐 Reporting Security Issues
4+
5+
> Do not open issues that might have security implications!
6+
> It is critical that security related issues are reported privately so we have time to address them before they become public knowledge.
7+
8+
Vulnerabilities can be reported by emailing core members:
9+
10+
- {{ cookiecutter.organization }} [{{ cookiecutter.email }}](mailto:{{ cookiecutter.email }})
11+
12+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
13+
14+
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
15+
- Full paths of source file(s) related to the manifestation of the issue
16+
- The location of the affected source code (tag/branch/commit or direct URL)
17+
- Any special configuration required to reproduce the issue
18+
- Environment (e.g. Linux / Windows / macOS)
19+
- Step-by-step instructions to reproduce the issue
20+
- Proof-of-concept or exploit code (if possible)
21+
- Impact of the issue, including how an attacker might exploit the issue
22+
23+
This information will help us triage your report more quickly.
24+
25+
## Preferred Languages
26+
27+
We prefer all communications to be in English.

0 commit comments

Comments
 (0)