Skip to content

Commit 585896f

Browse files
TehsmashSam Betts
authored and
Sam Betts
committed
Add initial implementation and setup repo configuration
1 parent c5c50d1 commit 585896f

19 files changed

+729
-1
lines changed

.github/CODEOWNERS

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CODEOWNERS reference: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2+
3+
# These owners will be the default owners for everything in
4+
# the repo. Unless a later match takes precedence,
5+
# the following users/teams will be requested for
6+
# review when someone opens a pull request.
7+
* @openclarity/vmclarity-maintainers
8+
9+
# Enforces admin protections for repo configuration via probot settings app.
10+
# ref: https://github.com/probot/settings#security-implications
11+
.github/settings.yml @openclarity/vmclarity-admins

.github/ISSUE_TEMPLATE/BUG_REPORT.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
12+
Please provide a description of the problem.
13+
14+
## Expected Behavior
15+
16+
Please describe what you expected would happen.
17+
18+
## Actual Behavior
19+
20+
Please describe what happened instead.
21+
22+
## Affected Version
23+
24+
Please provide the version number where this issue was encountered.
25+
26+
## Steps to Reproduce
27+
28+
1. First step
29+
1. Second step
30+
1. etc.
31+
32+
## Checklist
33+
34+
<!-- TODO: Update the link below to point to your project's contributing guidelines -->
35+
- [ ] I have read the [contributing guidelines](/CONTRIBUTING.md)
36+
- [ ] I have verified this does not duplicate an existing issue
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a feature for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Problem Statement
11+
12+
Please describe the problem to be addressed by the proposed feature.
13+
14+
## Proposed Solution
15+
16+
Please describe what you envision the solution to this problem would look like.
17+
18+
## Alternatives Considered
19+
20+
Please briefly describe which alternatives, if any, have been considered, including merits of alternate approaches and
21+
tradeoffs being made.
22+
23+
## Additional Context
24+
25+
Please provide any other information that may be relevant.

.github/PULL_REQUEST_TEMPLATE.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Description
2+
3+
Please provide a meaningful description of what this change will do, or is for. Bonus points for including links to
4+
related issues, other PRs, or technical references.
5+
6+
Note that by _not_ including a description, you are asking reviewers to do extra work to understand the context of this
7+
change, which may lead to your PR taking much longer to review, or result in it not being reviewed at all.
8+
9+
## Type of Change
10+
11+
[ ] Bug Fix
12+
[ ] New Feature
13+
[ ] Breaking Change
14+
[ ] Refactor
15+
[ ] Documentation
16+
[ ] Other (please describe)
17+
18+
## Checklist
19+
20+
- [ ] I have read the [contributing guidelines](/CONTRIBUTING.md)
21+
- [ ] Existing issues have been referenced (where applicable)
22+
- [ ] I have verified this change is not present in other open pull requests
23+
- [ ] Functionality is documented
24+
- [ ] All code style checks pass
25+
- [ ] New code contribution is covered by automated tests
26+
- [ ] All new and existing tests pass

.github/dependabot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: docker
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10
13+
- package-ecosystem: github-actions
14+
directory: "/"
15+
schedule:
16+
interval: daily
17+
open-pull-requests-limit: 10

.github/settings.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
repository:
2+
# See https://developer.github.com/v3/repos/#edit for all available settings.
3+
4+
# The name of the repository. Changing this will rename the repository
5+
name: exploit-db-server
6+
7+
# A short description of the repository that will show up on GitHub
8+
description: Combined server and periodic updater based on https://github.com/vulsio/go-exploitdb
9+
10+
# A URL with more information about the repository
11+
homepage: openclarity.io
12+
13+
# Updates the default branch for this repository.
14+
default_branch: main
15+
16+
# Either `true` to enable automated security fixes, or `false` to disable
17+
# automated security fixes.
18+
enable_automated_security_fixes: true
19+
20+
# Either `true` to enable vulnerability alerts, or `false` to disable
21+
# vulnerability alerts.
22+
enable_vulnerability_alerts: true
23+
24+
# Either `true` to allow squash-merging pull requests, or `false` to prevent
25+
# squash-merging.
26+
allow_squash_merge: true
27+
28+
# Either `true` to allow merging pull requests with a merge commit, or `false`
29+
# to prevent merging pull requests with merge commits.
30+
allow_merge_commit: false
31+
32+
# Either `true` to allow rebase-merging pull requests, or `false` to prevent
33+
# rebase-merging.
34+
allow_rebase_merge: true
35+
36+
# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
37+
delete_branch_on_merge: true
38+
39+
# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options
40+
teams:
41+
- name: vmclarity-admins
42+
# The permission to grant the team. Can be one of:
43+
# * `pull` - can pull, but not push to or administer this repository.
44+
# * `push` - can pull and push, but not administer this repository.
45+
# * `admin` - can pull, push and administer this repository.
46+
# * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions.
47+
permission: admin
48+
49+
- name: vmclarity-maintainers
50+
permission: maintain
51+
52+
# Collaborators: give specific users access to this repository.
53+
# See https://docs.github.com/en/rest/reference/collaborators for available options
54+
collaborators: []
55+
56+
branches:
57+
- name: main
58+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
59+
# Branch Protection settings. Set to null to disable
60+
protection:
61+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
62+
required_pull_request_reviews:
63+
# The number of approvals required. (1-6)
64+
required_approving_review_count: 1
65+
# Dismiss approved reviews automatically when a new commit is pushed.
66+
dismiss_stale_reviews: true
67+
# Blocks merge until code owners have reviewed.
68+
require_code_owner_reviews: true
69+
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
70+
dismissal_restrictions:
71+
users: []
72+
teams:
73+
- vmclarity-maintainers
74+
# Required. Require status checks to pass before merging. Set to null to disable
75+
required_status_checks:
76+
# Required. Require branches to be up to date before merging.
77+
strict: true
78+
# Required. The list of status checks to require in order to merge into this branch
79+
contexts:
80+
- Build / exploit-db-server
81+
82+
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
83+
enforce_admins: true
84+
# Prevent merge commits from being pushed to matching branches
85+
required_linear_history: true
86+
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
87+
restrictions:
88+
apps: []
89+
users: []
90+
teams: []

.github/stale.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 60
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 14
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- "no-stale"
16+
17+
# Set to true to ignore issues in a project (defaults to false)
18+
exemptProjects: false
19+
20+
# Set to true to ignore issues in a milestone (defaults to false)
21+
exemptMilestones: false
22+
23+
# Set to true to ignore issues with an assignee (defaults to false)
24+
exemptAssignees: false
25+
26+
# Label to use when marking as stale
27+
staleLabel: stale
28+
29+
# Comment to post when marking as stale. Set to `false` to disable
30+
markComment: >
31+
This issue has been automatically marked as stale because it has no recent
32+
activity in the last 60 days. It will be closed in 14 days if no further
33+
activity occurs. If this issue is still relevant please leave a comment to
34+
let us know and the stale label will be automatically removed. Thank you for
35+
your contributions.
36+
37+
# Comment to post when removing the stale label.
38+
# unmarkComment: >
39+
# Your comment here.
40+
41+
# Comment to post when closing a stale Issue or Pull Request.
42+
closeComment: >
43+
This issue has been stale for 14 days and is now closed due to inactivity, if
44+
this issue is still relevant please re-open this issue, or open a new issue.
45+
46+
# Limit the number of actions per hour, from 1-30. Default is 30
47+
limitPerRun: 30
48+
49+
# Limit to only `issues` or `pulls`
50+
# only: issues
51+
52+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
53+
# pulls:
54+
# daysUntilStale: 30
55+
# markComment: >
56+
# This pull request has been automatically marked as stale because it has not had
57+
# recent activity. It will be closed if no further activity occurs. Thank you
58+
# for your contributions.
59+
60+
# issues:
61+
# exemptLabels:
62+
# - confirmed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build:
7+
name: Build
8+
uses: ./.github/workflows/reusable-build-and-push.yml
9+
with:
10+
image_tag: ${{ github.sha }}
11+
push: false
12+
upload: false

.github/workflows/main-merge.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Main merge
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build_and_push:
9+
uses: ./.github/workflows/reusable-build-and-push.yml
10+
with:
11+
image_tag: latest
12+
push: true
13+
upload: false

.github/workflows/release.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+"
6+
7+
jobs:
8+
build_and_push:
9+
name: Build & Push
10+
uses: ./.github/workflows/reusable-build-and-push.yml
11+
with:
12+
image_tag: ${{ github.ref_name }}
13+
push: true
14+
15+
release:
16+
needs: build_and_push
17+
name: Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Changelog
26+
uses: Bullrich/generate-release-changelog@master
27+
id: Changelog
28+
env:
29+
REPO: ${{ github.repository }}
30+
31+
- name: Create Release
32+
id: create_release
33+
uses: softprops/action-gh-release@v1
34+
with:
35+
tag_name: ${{ github.ref_name }}
36+
name: ${{ github.ref_name }}
37+
body: |
38+
${{ steps.Changelog.outputs.changelog }}
39+
draft: false
40+
prerelease: false

0 commit comments

Comments
 (0)