OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
63
.github/workflows/security.yml
vendored
Normal file
63
.github/workflows/security.yml
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
name: Security Audit
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "master", "*.*-dev" ]
|
||||
pull_request:
|
||||
branches: [ "master", "*.*-dev" ]
|
||||
schedule:
|
||||
- cron: '0 8 * * 1' # Weekly on Monday at 8am UTC
|
||||
|
||||
jobs:
|
||||
composer-audit:
|
||||
name: Composer Security Audit
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.3'
|
||||
extensions: redis, gd, ldap, mbstring, pdo_mysql, zip, bcmath, exif, pcntl
|
||||
|
||||
- name: Install Composer Dependencies
|
||||
run: composer install --no-dev --no-interaction --prefer-dist
|
||||
|
||||
- name: Run Composer Audit
|
||||
run: composer audit --format=summary
|
||||
continue-on-error: true
|
||||
|
||||
npm-audit:
|
||||
name: NPM Security Audit
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install NPM Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run NPM Audit
|
||||
run: npm audit --audit-level=high
|
||||
|
||||
codeql:
|
||||
name: CodeQL Analysis
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
security-events: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: javascript
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
Reference in New Issue
Block a user