Skip to content

Commit

Permalink
Added issue templates and security policy
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Feb 25, 2023
1 parent 1724d1b commit 2197a1d
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/1_bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Bug Report
description: Found something you weren't expecting? Report it here!
labels: kind/bug
body:
- type: markdown
attributes:
value: |
NOTE: Do not report security reports publicly. See Reporting a vulnerability policy https://github.com/vtsykun/packeton/security/policy
- type: markdown
attributes:
value: |
1. Make sure you are using the latest release.
2. Please give all relevant information below for bug reports: logs details, stack traces, environment. You can found exception logs in var/log/
3. Please provide steps how to reproduce.
- type: textarea
id: description
attributes:
label: Description
description: |
Please provide a description of your issue here.
- type: dropdown
id: demo-reproduce
attributes:
label: Can you reproduce the bug on the Packeton demo site?
description: |
If so, please provide a URL in the Description field
URL of Packeton demo: https://demo.packeton.org
options:
- "Not applicable"
- "Yes"
- "No"
- type: dropdown
id: database
attributes:
label: Database
description: What database system are you running?
options:
- PostgreSQL
- MySQL
- SQLite
- Other
- type: markdown
attributes:
value: |
It's really important to provide pertinent logs
In addition, if you can temporary enable dev mode with `APP_ENV=dev` and run `composer install` to install all dev dependencies to see errors in UI.
After tests, please do not forget disable dev mode, because it is not secure for production.
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If this issue involves the UX/UI bugs, please provide one or more screenshots
- type: textarea
id: run-info
attributes:
label: How are you running Packeton?
description: |
Please include information about environment, e.g. if it is being run from docker, a php-fpm, nginx etc
validations:
required: false
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/2_general.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Feature request/General Question
about: Report Feature requests and Questions

---


5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Reporting a vulnerability
url: https://github.com/vtsykun/packeton/security/policy
about: For security concerns, please send a mail privately instead of opening a public issue.
6 changes: 6 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Reporting a vulnerability

If you have found any issues that might have security implications,
please send a report privately to tsykun314 [at] gmail.com or matrix @kasztelan:matrix.org

Don't report security reports publicly.
2 changes: 1 addition & 1 deletion src/Mirror/RemoteProxyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected function lookIncludePackageMetadata(array $data, string $package): arr
}

if (isset($data['packages'][$package])) {
return $data['packages'][$package];
return $data['packages'][$package] ?: [];
}

if (isset($data['includes']) && \is_array($data['includes'])) {
Expand Down

0 comments on commit 2197a1d

Please sign in to comment.