Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Horusec for SCA and Potential SAST #51

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/dart_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,24 @@ jobs:

- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}

# SCA - find existing vulnerabilities affecting your project’s dependencies.
# REPO NEEDS TO BE PUBLIC
#osv-scanner:
# name: OSV Scanner
# uses: "google/osv-scanner/.github/workflows/osv-scanner-reusable-pr.yml@main"

# Dart SAST
horusec-security:
name: horusec-security
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Running Horusec Security
run: |
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash -s latest-beta
horusec start -p="./" -e="true"
139 changes: 139 additions & 0 deletions horusec-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"horusecCliCertInsecureSkipVerify": false,
"horusecCliCertPath": "",
"horusecCliContainerBindProjectPath": "",
"horusecCliCustomImages": {
"c": "",
"csharp": "",
"elixir": "",
"generic": "",
"go": "",
"hcl": "",
"javascript": "",
"leaks": "",
"php": "",
"python": "",
"ruby": "",
"shell": ""
},
"horusecCliCustomRulesPath": "",
"horusecCliDisableDocker": false,
"horusecCliEnableCommitAuthor": false,
"horusecCliEnableGitHistoryAnalysis": false,
"horusecCliEnableInformationSeverity": false,
"horusecCliEnableOwaspDependencyCheck": false,
"horusecCliEnableShellcheck": false,
"horusecCliFalsePositiveHashes": null,
"horusecCliFilesOrPathsToIgnore": [
"*tmp*",
"**/.vscode/**"
],
"horusecCliHeaders": {},
"horusecCliHorusecApiUri": "http://0.0.0.0:8000",
"horusecCliJsonOutputFilepath": "",
"horusecCliMonitorRetryInSeconds": 15,
"horusecCliPrintOutputType": "",
"horusecCliProjectPath": "./",
"horusecCliRepositoryAuthorization": "00000000-0000-0000-0000-000000000000",
"horusecCliRepositoryName": "angeleno-my-account-flutter",
"horusecCliReturnErrorIfFoundVulnerability": true,
"horusecCliRiskAcceptHashes": null,
"horusecCliSeveritiesToIgnore": [
"INFO"
],
"horusecCliShowVulnerabilitiesTypes": [
"Vulnerability"
],
"horusecCliTimeoutInSecondsAnalysis": 600,
"horusecCliTimeoutInSecondsRequest": 300,
"horusecCliToolsConfig": {
"Bandit": {
"istoignore": false
},
"Brakeman": {
"istoignore": false
},
"BundlerAudit": {
"istoignore": false
},
"Checkov": {
"istoignore": false
},
"DotnetCli": {
"istoignore": false
},
"Flawfinder": {
"istoignore": false
},
"GitLeaks": {
"istoignore": false
},
"GoSec": {
"istoignore": false
},
"HorusecDart": {
"istoignore": false
},
"HorusecEngine": {
"istoignore": false
},
"MixAudit": {
"istoignore": false
},
"Nancy": {
"istoignore": false
},
"NpmAudit": {
"istoignore": false
},
"OwaspDependencyCheck": {
"istoignore": false
},
"PhpCS": {
"istoignore": false
},
"Safety": {
"istoignore": false
},
"SecurityCodeScan": {
"istoignore": false
},
"Semgrep": {
"istoignore": false
},
"ShellCheck": {
"istoignore": false
},
"Sobelow": {
"istoignore": false
},
"TfSec": {
"istoignore": false
},
"Trivy": {
"istoignore": false
},
"YarnAudit": {
"istoignore": false
}
},
"horusecCliWorkDir": {
"go": [],
"csharp": [],
"ruby": [],
"python": [],
"java": [],
"kotlin": [],
"javaScript": [],
"leaks": [],
"hcl": [],
"php": [],
"c": [],
"yaml": [],
"generic": [],
"elixir": [],
"shell": [],
"dart": ["./lib/"],
"nginx": []
}
}
4 changes: 3 additions & 1 deletion lib/views/screens/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(final BuildContext context) {
final bool smallScreen = MediaQuery.of(context).size.width < 720;
userProvider = context.watch<UserProvider>();
userProvider = context.watch<UserProvider>();

print('%');

return Container(
margin: const EdgeInsets.fromLTRB(0, 47.0, 0, 0),
Expand Down
Loading