-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
4,717 additions
and
1,183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{go,go.tmpl}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*.go text eol=lf | ||
*.yaml text eol=lf | ||
*.yml text eol=lf | ||
*.json text eol=lf | ||
*.sh text eol=lf | ||
*.md text eol=lf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
|
||
|
@@ -13,7 +12,7 @@ jobs: | |
name: Tests | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
os: [ ubuntu-latest, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
|
@@ -22,6 +21,7 @@ jobs: | |
go-version: stable | ||
|
||
- name: Install Ubuntu dependencies | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libpam0g-dev | ||
|
||
- name: Checkout code | ||
|
@@ -40,26 +40,63 @@ jobs: | |
- name: Install goveralls | ||
run: go install github.com/mattn/goveralls@latest | ||
|
||
- name: Install Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
- name: Test | ||
run: | | ||
mkdir -p var | ||
go test -v -covermode atomic "-coverprofile=var/profile.cov" ./... | ||
- name: Send coverage | ||
if: false | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
goveralls "-coverprofile=profile.cov" "-service=github" "-parallel" "-flagname=go-${{ matrix.os }}" | ||
package: | ||
name: Package | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
|
||
- name: Install Ubuntu dependencies | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libpam0g-dev | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Install Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
distribution: goreleaser | ||
version: "~> v2" | ||
args: build --snapshot --clean | ||
args: release --snapshot --clean | ||
env: | ||
BIFROEST_VENDOR: engity | ||
|
||
- name: Send coverage | ||
if: false | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
goveralls "-coverprofile=profile.cov" "-service=github" "-parallel" "-flagname=go-${{ matrix.os }}" | ||
- name: Archive package results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
retention-days: 1 | ||
name: dist | ||
path: | | ||
var/dist/*.tgz* | ||
var/dist/*.zip* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Lint | ||
on: | ||
push: | ||
|
||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
golangci: | ||
name: "golangci-lint" | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
|
||
- name: Install Ubuntu dependencies | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install libpam0g-dev | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
run: | ||
timeout: 20m | ||
|
||
linters: | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- misspell | ||
disable: | ||
- ineffassign | ||
|
||
linters-settings: | ||
misspell: | ||
locale: US | ||
ignore-words: | ||
- engity | ||
- bifröst | ||
- bifroest | ||
|
||
issues: | ||
exclude-dirs: | ||
- internal/fmtsort | ||
- internal/text | ||
exclude: | ||
- S1002 | ||
- S1016 | ||
- SA1012 | ||
- S1031 | ||
- SA1019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ builds: | |
binary: bifroest | ||
goos: | ||
- linux | ||
- windows | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//go:build unix | ||
|
||
package main | ||
|
||
const ( | ||
defaultConfigurationRef = "/etc/engity/bifroest/configuration.yaml" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//go:build windows | ||
|
||
package main | ||
|
||
const ( | ||
defaultConfigurationRef = `C:\ProgramData\Engity\Bifroest\configuration.yaml` | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.