-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (44 loc) · 1.63 KB
/
autofic_javascript.yml
File metadata and controls
52 lines (44 loc) · 1.63 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Autofic SAST for Selected JavaScript Repos
on:
schedule:
- cron: '00 21 * * 0' # 매주 월요일 오전 6시
workflow_dispatch:
jobs:
find-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Set Git config
run: |
git config --global user.email "github-actions@users.noreply.github.com"
git config --global user.name "github-actions"
- name: Run ci_automation.py automatically
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
USER_NAME: ${{ secrets.USER_NAME }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
RESULT_SAVE_DIR: ${{ github.workspace }}/result,
LOG_API_URL: ${{secrets.LOG_API_URL}}
run: |
python src/autofic_core/ci_cd_auto/ci_automation.py
- name: Trigger dashboard update in Dashboard repo
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GIT_TOKEN }}" \
https://api.github.com/repos/Autofic/Dashboard/actions/workflows/update_dashboard.yml/dispatches \
-d '{"ref":"main"}'