forked from Tencent/CodeAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 730 Bytes
/
tca.yml
File metadata and controls
27 lines (25 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Tencent Cloud Code Analysis
on:
pull_request:
branches:
- main
jobs:
TCA:
name: Tencent Cloud Code Analysis
runs-on: ubuntu-latest
env:
INPUT_BLOCK: false
INPUT_LABEL: safety
INPUT_IGNORE_PATHS: .git/.*,.github/workflows/.*
INPUT_FROM_FILE: changed.txt
container:
image: bensonhome/tca-action
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: get git diff files
run: git config --global core.quotepath false && git diff ${{ github.sha }}^ ${{ github.sha }} --name-only > changed.txt && cat changed.txt
- name: Tencent Cloud Code Analysis
run: /tca_action/entrypoint.sh