forked from 99designs/aws-vault
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from wiz-sec/guy/merge-master
Squash commit of 99designs/master e22aea1
- Loading branch information
Showing
63 changed files
with
2,178 additions
and
893 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,41 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
- master | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build | ||
test: | ||
name: test | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
- uses: actions/checkout@v3 | ||
- name: Run tests | ||
run: go test -race ./... | ||
lint: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests | ||
name: lint | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest] | ||
|
||
os: [macos-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
||
- name: Set up Go 1.17 | ||
uses: actions/setup-go@v2.2.0 | ||
with: | ||
go-version: 1.17 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2.4.0 | ||
|
||
- name: Run tests | ||
run: go test -race ./... | ||
|
||
- name: Check go vet | ||
run: go vet ./... | ||
|
||
- name: Check go fmt | ||
run: diff -u <(echo -n) <(gofmt -s -d .) | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3.4.0 | ||
with: | ||
version: v1.52.0 |
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,17 @@ | ||
# See https://github.com/actions/stale | ||
name: Mark and close stale issues | ||
on: | ||
schedule: | ||
- cron: '15 10 * * *' | ||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/stale@v7 | ||
with: | ||
days-before-stale: 180 | ||
days-before-close: 7 | ||
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.' | ||
exempt-issue-labels: pinned,security,feature |
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,28 @@ | ||
linters: | ||
enable: | ||
- bodyclose | ||
- contextcheck | ||
- depguard | ||
- durationcheck | ||
- dupl | ||
- errchkjson | ||
- errname | ||
- exhaustive | ||
- exportloopref | ||
- gofmt | ||
- goimports | ||
- makezero | ||
- misspell | ||
- nakedret | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- prealloc | ||
- revive | ||
# - rowserrcheck | ||
- thelper | ||
- tparallel | ||
- unconvert | ||
- unparam | ||
# - wastedassign | ||
- whitespace |
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.