Skip to content

Commit 52e2133

Browse files
authored
Merge pull request #5 from pjbgf/align
Housekeeping
2 parents 1b398f6 + 3a51fb1 commit 52e2133

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

.github/dependabot.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
commit-message:
8+
prefix: "build"
9+
10+
- package-ecosystem: "gomod"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
commit-message:
15+
prefix: "build"
16+
groups:
17+
golang.org:
18+
patterns:
19+
- "golang.org/*"

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
schedule:
8+
- cron: '00 5 * * 1'
9+
10+
permissions: {}
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'go' ]
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
33+
with:
34+
languages: ${{ matrix.language }}
35+
# xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
36+
# xref: https://codeql.github.com/codeql-query-help/go/
37+
queries: security-and-quality
38+
39+
- name: Manual Build
40+
run: go build ./...
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
44+
with:
45+
category: "/language:${{matrix.language}}"

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
on: [push, pull_request]
21
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions: {}
8+
39
jobs:
410
version-matrix:
511
strategy:
612
fail-fast: false
713
matrix:
8-
go-version: [1.21, 1.22]
14+
go-version: [1.21.x, 1.22.x, 1.23.x]
915
platform: [ubuntu-latest, macos-latest, windows-latest]
1016

1117
runs-on: ${{ matrix.platform }}

0 commit comments

Comments
 (0)