Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself authored Apr 24, 2024
0 parents commit 69b9a2d
Show file tree
Hide file tree
Showing 17 changed files with 937 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# default reviewers
* @greenbone/<FIXME>
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: false
contact_links:
- name: Greenbone Community Forum
url: https://community.greenbone.net/c/gse
about: Please ask and answer questions here.
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Bug Report
about: Report an issue
title: ''
labels: bug
assignees: ''

---

<!--
If reporting an issue please try to provide the information asked below.
Before reporting an issue please:
1. Be aware that this is not a support forum. If your issue is rather a question
than a bug report, please use our community forum at
https://community.greenbone.net/c/gse instead.
2. Make sure that you're using the latest published release
3. Check the list of issues whether it isn't already reported.
4. Read 1. again and if you still believe you found a software bug please
continue to file this issue. If you are in doubt use
https://community.greenbone.net/c/gse instead.
Thanks for your help to keep the communication channels clean and consistent!
-->

### Expected behavior

<!--
How did you expect the software to behave?
Please write down how it should work in your opinion.
-->

### Actual behavior

<!--
Did something go wrong?
Is something broken, or not behaving as you expected?
Is this really an bug? If in doubt please use
https://community.greenbone.net/c/gse instead.
-->

### Steps to reproduce

<!--
How would you describe your issue to someone who doesn’t know something about
this software? Try to write a sequence of steps that anybody can repeat to see
the issue.
-->

1.
2.
3.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 10
allow:
- dependency-type: direct
- dependency-type: indirect
44 changes: 44 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '30 5 * * 0' # 5:30h on Sundays

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
12 changes: 12 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Conventional Commits

on:
pull_request:

jobs:
conventional-commits:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- name: Report Conventional Commits
uses: greenbone/actions/conventional-commits@v2
12 changes: 12 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Dependency Review'
uses: greenbone/actions/dependency-review@v2
15 changes: 15 additions & 0 deletions .github/workflows/hygiene.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Hygiene

on: [push, pull_request]

jobs:
format-vet-staticcheck:
name: Check for common mistakes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: test $(gofmt -l ./.. | wc -l) == 0 || (printf "Formatting issue; please run go fmt ./..\n" && exit 1)
- run: go vet ./...
- run: go install honnef.co/go/tools/cmd/staticcheck
- run: ~/go/bin/staticcheck ./...
14 changes: 14 additions & 0 deletions .github/workflows/sbom-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: SBOM upload
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
SBOM-upload:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: 'SBOM upload'
uses: greenbone/actions/sbom-upload@v2
12 changes: 12 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Testing

on: [push, pull_request]

jobs:
unittests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: go test ./...
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
Loading

0 comments on commit 69b9a2d

Please sign in to comment.