-
Notifications
You must be signed in to change notification settings - Fork 53
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 #321 from gofiber/ci-branches
Cleanup CI workflows
- Loading branch information
Showing
18 changed files
with
182 additions
and
105 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Dependabot auto-merge | ||
|
||
on: | ||
pull_request | ||
|
||
|
@@ -12,7 +13,7 @@ jobs: | |
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Wait for check is finished | ||
uses: lewagon/[email protected].1 | ||
uses: lewagon/[email protected].3 | ||
id: wait_for_checks | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
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,40 @@ | ||
name: Golangci-Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
golangci-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
# NOTE: Keep this in sync with the version from go.mod | ||
go-version: '1.20.x' | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
# NOTE: Keep this in sync with the version from .golangci.yml | ||
version: 'v1.52.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,64 @@ | ||
name: Gosec Security Scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
jobs: | ||
detect-changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.changed-files.outputs.all_changed_files }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Changed Files | ||
uses: tj-actions/changed-files@v41 | ||
id: changed-files | ||
with: | ||
files_ignore: | | ||
.github/** | ||
**.md | ||
json: true | ||
escape_json: false | ||
dir_names: true | ||
dir_names_exclude_current_dir: true | ||
|
||
gosec-scan: | ||
runs-on: ubuntu-latest | ||
needs: detect-changes | ||
env: | ||
GO111MODULE: on | ||
strategy: | ||
matrix: | ||
modules: ${{ fromJSON(needs.detect-changes.outputs.matrix) }} | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.21.x' | ||
check-latest: true | ||
cache: false | ||
- name: Install gosec | ||
run: go install github.com/securego/gosec/v2/cmd/gosec@latest | ||
- name: Run gosec | ||
working-directory: ${{ matrix.modules }} | ||
run: gosec ./... |
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,39 @@ | ||
name: Govulncheck Security Scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths-ignore: | ||
- "**.md" | ||
- LICENSE | ||
- ".github/ISSUE_TEMPLATE/*.yml" | ||
- ".github/dependabot.yml" | ||
|
||
jobs: | ||
govulncheck-check: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Fetch Repository | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
check-latest: true | ||
cache: false | ||
- name: Install Govulncheck | ||
run: go install golang.org/x/vuln/cmd/govulncheck@latest | ||
- name: Run Govulncheck | ||
run: govulncheck ./... |
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
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- 'ace/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'ace/**' | ||
name: Tests Ace | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- 'amber/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'amber/**' | ||
name: Tests Amber | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- 'django/**' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- 'django/**' | ||
name: Tests Django | ||
|
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.