-
Notifications
You must be signed in to change notification settings - Fork 7
27 lines (26 loc) · 879 Bytes
/
main.yml
File metadata and controls
27 lines (26 loc) · 879 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
on: [pull_request]
jobs:
test_job:
runs-on: ubuntu-latest
permissions:
statuses: write
name: A test job to test the action
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3.6.0
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 }}