init
This commit is contained in:
49 files changed
+4041
No files matched your search
@@ -0,0 +1,31 @@
|
||||
name: Bug report
|
||||
description: Report a reproducible bug without secrets or vulnerability details.
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: For security vulnerabilities, follow SECURITY.md. Never paste real API keys, private DNS questions, or unredacted operational configurations.
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: Version or commit
|
||||
description: Include the OS/architecture and Go version if building from source.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: reproduction
|
||||
attributes:
|
||||
label: Reproduction
|
||||
description: Give minimal steps using the local mock provider and redacted configuration.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: Expected and actual behavior
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: diagnostics
|
||||
attributes:
|
||||
label: Diagnostics
|
||||
description: Sanitized dig output, logs, or counters. Omit credentials and private questions.
|
||||
@@ -0,0 +1 @@
|
||||
blank_issues_enabled: false
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Feature request
|
||||
description: Suggest an improvement and its operational tradeoffs.
|
||||
body:
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: Problem or use case
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: proposal
|
||||
attributes:
|
||||
label: Proposed behavior
|
||||
description: Consider DNS constraints, bounded resources, paid work, and compatibility.
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,12 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gomod
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 5
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 5
|
||||
@@ -0,0 +1,10 @@
|
||||
Describe the problem and resulting behavior. Link the relevant issue if any.
|
||||
|
||||
Validation:
|
||||
|
||||
- [ ] `make check` and `make test` pass.
|
||||
- [ ] Meaningful behavior changes have regression coverage.
|
||||
- [ ] Configuration and deployment documentation match the change.
|
||||
- [ ] No real credentials, private configurations, or generated state are included.
|
||||
|
||||
Mention any remaining operational risks or limitations.
|
||||
@@ -0,0 +1,33 @@
|
||||
name: build release archives
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: Version to embed, such as v0.1.0 or v0.1.0-rc.1
|
||||
required: true
|
||||
type: string
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: "1.26.x"
|
||||
check-latest: true
|
||||
cache: true
|
||||
- name: Build archives
|
||||
env:
|
||||
RELEASE_VERSION: ${{ inputs.version }}
|
||||
run: bash scripts/release.sh "$RELEASE_VERSION"
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
name: ask53-release-archives
|
||||
path: dist/
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
@@ -0,0 +1,47 @@
|
||||
name: test
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: read
|
||||
concurrency:
|
||||
group: test-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
test:
|
||||
name: test (${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 15
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: "1.26.x"
|
||||
check-latest: true
|
||||
cache: true
|
||||
- name: Install dig on Linux
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y dnsutils
|
||||
- name: Check module checksums
|
||||
run: go mod verify
|
||||
- name: Check formatting
|
||||
shell: bash
|
||||
run: test -z "$(gofmt -l cmd internal)"
|
||||
- name: Static analysis
|
||||
run: make check
|
||||
- name: Race and integration tests
|
||||
run: make test
|
||||
- name: Fuzz question parser
|
||||
run: go test ./internal/dnsserver -run='^$' -fuzz=FuzzQuestion -fuzztime=10s -parallel=2
|
||||
- name: Fuzz TXT encoding
|
||||
run: go test ./internal/dnsserver -run='^$' -fuzz=FuzzTXTWire -fuzztime=10s -parallel=2
|
||||
- name: Verify release packaging
|
||||
if: runner.os == 'Linux'
|
||||
run: make release VERSION=v0.0.0-ci
|
||||
Reference in new issue
Block a user