-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (32 loc) · 1000 Bytes
/
validate.yml
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
name: Main
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@8e1ba3bf1619726336414f1014e37f17fbadf1db #v2.1.0
with:
application_id: ${{ secrets.ADVANCED_SECURITY_APP_ID }}
application_private_key: ${{ secrets.ADVANCED_SECURITY_APP_KEY }}
- name: Install Deps
run: python3 -m pip install pipenv && python3 -m pipenv install
# Run Validation
- name: Run Validation
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
run: |
pipenv run python ./.github/scripts/validate.py \
--validate