Skip to content

Commit 8ad918a

Browse files
authored
Create md.md
1 parent 61e0e9c commit 8ad918a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

md.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
**Basic example**: run DX Scanner on each push to the repo
2+
3+
Create `.github/workflows/main.yml`.
4+
5+
```yml
6+
name: DX Scanner
7+
on: push
8+
jobs:
9+
dx-scanner:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Runs DX Scanner on the code
14+
uses: docker://dxheroes/dx-scanner:latest
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
```
18+
19+
[Generate your Github personal token](https://github.com/settings/tokens/new) and [set it as an encrypted secret](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) named `GITHUB_TOKEN`.

0 commit comments

Comments
 (0)