-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 1.04 KB
/
build.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
41
name: Main
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
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 - Full Example
env:
GITHUB_REPOSITORY: advanced-security/secret-scanning-custom-patterns
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
run: |
pipenv run snapshot -p ./examples/
pipenv run validate -p ./examples/
pipenv run markdown -p ./examples/ --cwd ./examples/