Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>pull/561/head
parent
fc40946dae
commit
c4a91ae730
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
# name: OpenIM e2e Test
|
@ -1,30 +1,30 @@
|
|||||||
# name: Run gosec
|
name: OpenIM Run Gosec
|
||||||
|
|
||||||
# # gosec is a source code security audit tool for the Go language. It performs a static
|
# gosec is a source code security audit tool for the Go language. It performs a static
|
||||||
# # analysis of the Go code, looking for potential security problems. The main functions of gosec are:
|
# analysis of the Go code, looking for potential security problems. The main functions of gosec are:
|
||||||
# # 1. Find common security vulnerabilities, such as SQL injection, command injection, and cross-site scripting (XSS).
|
# 1. Find common security vulnerabilities, such as SQL injection, command injection, and cross-site scripting (XSS).
|
||||||
# # 2. Audit codes according to common security standards and find non-standard codes.
|
# 2. Audit codes according to common security standards and find non-standard codes.
|
||||||
# # 3. Assist the Go language engineer to write safe and reliable code.
|
# 3. Assist the Go language engineer to write safe and reliable code.
|
||||||
|
|
||||||
# on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# branches: "*"
|
branches: "*"
|
||||||
# pull_request:
|
pull_request:
|
||||||
# branches: "*"
|
branches: "*"
|
||||||
# paths-ignore:
|
paths-ignore:
|
||||||
# - '*.md'
|
- '*.md'
|
||||||
# - '*.yml'
|
- '*.yml'
|
||||||
# - '.github'
|
- '.github'
|
||||||
|
|
||||||
# jobs:
|
jobs:
|
||||||
# golang-security-action:
|
golang-security-action:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# env:
|
env:
|
||||||
# GO111MODULE: on
|
GO111MODULE: on
|
||||||
# steps:
|
steps:
|
||||||
# - name: Check out code
|
- name: Check out code
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
# - name: Run Gosec Security Scanner
|
- name: Run Gosec Security Scanner
|
||||||
# uses: securego/gosec@master
|
uses: securego/gosec@master
|
||||||
# with:
|
with:
|
||||||
# args: ./...
|
args: ./...
|
@ -0,0 +1,24 @@
|
|||||||
|
name: OpenIM Grype
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['main']
|
||||||
|
tags: ['v*']
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
scan-source:
|
||||||
|
name: scan-source
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
security-events: write
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||||
|
- uses: anchore/scan-action@v3
|
||||||
|
with:
|
||||||
|
path: "."
|
||||||
|
fail-build: true
|
Loading…
Reference in new issue