-
Notifications
You must be signed in to change notification settings - Fork 124
36 lines (35 loc) · 1.04 KB
/
hacktrack.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
#This file is for ServiceNow Dev Program Hacktoberfest Tracking and can be ignored or deleted.
name: Record Hacktrack Event
on:
push:
branches: main
fork:
branches: main
issues:
types: [opened, closed]
branches: main
pull_request_target:
types: [opened, closed]
branches: main
jobs:
deployment:
if: github.repository == 'ServiceNowDevProgram/SlackerBot'
runs-on: ubuntu-latest
steps:
# - name: Log payload
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: |
# echo "$GITHUB_CONTEXT"
- name: Contact DPR
id: myRequest
uses: fjogeleit/[email protected]
with:
url: ${{ format('https://{0}.service-now.com/api/x_snc_hacktrack/hacktrack', secrets.HT_INSTANCE_NAME) }}
method: 'POST'
contentType: application/json
data: ${{ toJson(github) }}
username: ${{ secrets.ADMIN_USERNAME }}
password: ${{ secrets.ADMIN_PASSWORD }}
- name: Show Response
run: echo ${{ steps.myRequest.outputs.response }}