-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding PR template and workflow (#6)
Added PR template and workflow Fixed gosec, formatting, linting issues
- Loading branch information
Showing
21 changed files
with
332 additions
and
134 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,26 @@ | ||
# Description | ||
A few sentences describing the overall goals of the pull request's commits. | ||
|
||
# GitHub Issues | ||
List the GitHub issues impacted by this PR: | ||
|
||
| GitHub Issue # | | ||
| -------------- | | ||
| | | ||
|
||
# Checklist: | ||
|
||
- [ ] I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues | ||
- [ ] I have verified that new and existing unit tests pass locally with my changes | ||
- [ ] I have not allowed coverage numbers to degenerate | ||
- [ ] I have maintained at least 90% code coverage | ||
- [ ] I have commented on my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] Backward compatibility is not broken | ||
|
||
# How Has This Been Tested? | ||
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration | ||
|
||
- [ ] Test A | ||
- [ ] Test B |
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,38 @@ | ||
name: Workflow | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
code-check: | ||
name: Check Go formatting, linting, vetting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
- name: Run the formatter, linter, and vetter | ||
uses: dell/common-github-actions/go-code-formatter-linter-vetter@main | ||
with: | ||
directories: ./... | ||
go_security_scan: | ||
name: Go security | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
- name: Run Go Security | ||
uses: securego/gosec@master | ||
with: | ||
args: ./... | ||
malware_security_scan: | ||
name: Malware Scanner | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
- name: Run malware scan | ||
uses: dell/common-github-actions/malware-scanner@main | ||
with: | ||
directories: . | ||
options: -ri |
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
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
Oops, something went wrong.