-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (29 loc) · 951 Bytes
/
main.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
on: [pull_request]
jobs:
test_job:
runs-on: ubuntu-latest
name: A test job to test the action
permissions:
statuses: write
pull-requests: write
contents: read
actions: read
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 18
- run: |
# Run a SAST scan using a supprted tool, Snyk as an example
npx snyk auth ${{ secrets.SNYK_API_KEY }}
! npx snyk code test --sarif-file-output=/home/runner/report.json ./
shell: bash -l {0}
- name: Mobb action step
uses: ./ # Uses an action in the root directory
with:
report-file: "/home/runner/report.json"
api-key: ${{ secrets.MOBB_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}