+
Skip to content

Add security scanning template #2

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

Open
wants to merge 1 commit into
base: master
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
12 changes: 12 additions & 0 deletions workflow-templates/security.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Security scanning",
"description": "Keeping Infrastructure as Code Secure. Static code analysis for DockerFiles, Helm Charts, and Terraform IAC.",
"iconName": "security",
"categories": [
"Security",
"Scanning"
],
"filePatterns": [
".*"
]
}
1 change: 1 addition & 0 deletions workflow-templates/security.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions workflow-templates/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Name: Security scanning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Name: Security scanning
name: Security scanning

on:
pull_request:
jobs:
security-scan:
runs-on: sre
name: security-checks
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Mkdir results-dir
run: mkdir -p results-dir
- name: Run Scan
uses: checkmarx/kics-action@v1.3
with:
path: '.'
fail_on: high
output_path: results-dir
output_formats: 'json'
token: ${{ secrets.GITHUB_TOKEN }}
enable_comments: true
- name: Display Scan results
run: |
jq -e '.' results-dir/results.json
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载