-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 947 Bytes
/
dlp.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
# github action 试用
name: Java CI
on:
push: # 触发事件
branches: [ "master" ] #限制生效分支
pull_request:
jobs:
deployment:
runs-on: ubuntu-latest #镜像
steps: #执行步骤
- name: Set Environment Variables
run: |
echo "API_KEY=${{ secrets.NIGHTFALL_API_KEY }}" >> $GITHUB_ENV
echo "GITHUB_TOKEN=${{secrets.MPR_GITHUB_TOKEN }}" >> $GITHUB_ENV
- name: Output Log
run: |
echo "This is a log ${API_KEY: -4}"
echo "That is a log ${GITHUB_TOKEN: -4}"
- name: Checkout Repo Action
uses: actions/checkout@v2
- name: Nightfall DLP Action
uses: nightfallai/[email protected]
env:
NIGHTFALL_API_KEY: ${{ secrets.NIGHTFALL_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EVENT_BEFORE: ${{ github.event.before }}
permissions:
checks: write
contents: read