Skip to content

Commit c6c40ab

Browse files
authored
Create main.yml
1 parent 158bd1b commit c6c40ab

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#This file is for ServiceNow Dev Program Hacktoberfest Tracking and can be ignored or deleted.
2+
3+
name: Record Hacktrack Event
4+
on:
5+
push:
6+
branches: master
7+
fork:
8+
branches: master
9+
issues:
10+
types: [opened, closed]
11+
branches: master
12+
pull_request_target:
13+
types: [opened, closed]
14+
branches: master
15+
jobs:
16+
deployment:
17+
runs-on: ubuntu-latest
18+
steps:
19+
# - name: Log payload
20+
# env:
21+
# GITHUB_CONTEXT: ${{ toJson(github) }}
22+
# run: |
23+
# echo "$GITHUB_CONTEXT"
24+
- name: Contact DPR
25+
id: myRequest
26+
uses: fjogeleit/http-request-action@v1.8.1
27+
with:
28+
url: ${{ format('https://{0}.service-now.com/api/x_snc_hacktrack/hacktrack', secrets.HT_INSTANCE_NAME) }}
29+
method: 'POST'
30+
contentType: application/json
31+
data: ${{ toJson(github) }}
32+
username: ${{ secrets.ADMIN_USERNAME }}
33+
password: ${{ secrets.ADMIN_PASSWORD }}
34+
- name: Show Response
35+
run: echo ${{ steps.myRequest.outputs.response }}

0 commit comments

Comments
 (0)