Skip to content

Commit f78884a

Browse files
authored
governance+ci: hardening (templates, CoC, release workflow, stronger CodeQL) (#3)
* governance+ci: add issue/PR templates, Code of Conduct; add release workflow with attestation; expand CodeQL queries * ci: add Dependabot for GitHub Actions (weekly)
1 parent 71b585d commit f78884a

7 files changed

Lines changed: 123 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Bug report
2+
description: Report a problem with the extension
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill this out!
9+
- type: input
10+
id: gnome
11+
attributes:
12+
label: GNOME Shell version
13+
placeholder: 44, 45, etc
14+
validations:
15+
required: true
16+
- type: dropdown
17+
id: session
18+
attributes:
19+
label: Session
20+
options:
21+
- Wayland
22+
- Xorg
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: steps
27+
attributes:
28+
label: Steps to reproduce
29+
placeholder: What happened?
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: logs
34+
attributes:
35+
label: Relevant logs
36+
description: Output of `journalctl --user -b 0 -o cat | grep -i comfort-control`
37+
render: shell
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Feature request
2+
description: Suggest an idea or improvement
3+
labels: [enhancement]
4+
body:
5+
- type: textarea
6+
id: problem
7+
attributes:
8+
label: Problem to solve
9+
placeholder: What’s the user need?
10+
- type: textarea
11+
id: solution
12+
attributes:
13+
label: Proposed solution
14+
placeholder: Describe the solution you’d like
15+
- type: textarea
16+
id: context
17+
attributes:
18+
label: Additional context
19+
placeholder: Mockups, examples, references

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Summary
2+
3+
Describe the change and motivation.
4+
5+
## Checklist
6+
- [ ] Tested on supported GNOME versions
7+
- [ ] No new warnings in journalctl
8+
- [ ] Updated docs if needed
9+
10+
Fixes #

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727

2828
- name: Initialize CodeQL
2929
uses: github/codeql-action/init@4248455a6f2335bc3b7a8a62932f000050ec8f13
30+
with:
31+
queries: security-and-quality
32+
languages: ${{ matrix.language }}
3033
with:
3134
languages: ${{ matrix.language }}
3235

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
attestations: write
11+
id-token: write
12+
13+
jobs:
14+
build-and-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
19+
20+
- name: Install build deps
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y zip libglib2.0-bin
24+
25+
- name: Prepare build
26+
run: |
27+
set -e
28+
if [ -d schemas ]; then glib-compile-schemas schemas; fi
29+
ZIP="comfort-control-github-${GITHUB_REF_NAME}.zip"
30+
echo "ZIP_NAME=$ZIP" >> $GITHUB_ENV
31+
zip -r "$ZIP" . \
32+
-x '.git/*' '.github/*' 'screenshots/*'
33+
34+
- name: Attach provenance
35+
uses: actions/attest-build-provenance@v1
36+
with:
37+
subject-path: ${{ env.ZIP_NAME }}
38+
39+
- name: Create GitHub Release
40+
uses: softprops/action-gh-release@de2c0eb2d6b4e54f5a75a42c46b67f7b9a6c0c4b
41+
with:
42+
files: ${{ env.ZIP_NAME }}

CODE_OF_CONDUCT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Code of Conduct
2+
3+
We follow the Contributor Covenant. Be respectful, helpful, and constructive.
4+
5+
For issues, contact: nickotmazgin.dev@gmail.com

0 commit comments

Comments
 (0)