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

Feat/scan tools #4794

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
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
41 changes: 41 additions & 0 deletions .github/workflows/sec_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Security Tools Scan

on:
push:
branches:
- "feat/scan_tools"
pull_request:
branches:
- main

jobs:
security-scans:
runs-on: ubuntu-22.04
steps:
- name: Code auschecken
uses: actions/checkout@v3

- name: Go installieren
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Go Bin zum PATH hinzufügen
run: echo "$HOME/go/bin" >> $GITHUB_PATH

- name: Semgrep ausführen
uses: returntocorp/semgrep-action@v1
with:
config: "p/r2c-ci"

- name: GoSec installieren
run: go install github.com/securego/gosec/v2/cmd/gosec@latest

- name: GoSec ausführen
run: $HOME/go/bin/gosec ./...

- name: Go-Critic installieren
run: go install github.com/go-critic/go-critic/cmd/gocritic@latest

- name: Go-Critic ausführen
run: $HOME/go/bin/gocritic check-project ./...
Loading