Nag instancescan day31 #617
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This file is for ServiceNow Dev Program Hacktoberfest Tracking and can be ignored or deleted. | |
name: Record Hacktrack Event | |
on: | |
push: | |
branches: master | |
fork: | |
branches: master | |
issues: | |
types: [opened, closed] | |
branches: master | |
pull_request_target: | |
types: [opened, closed] | |
branches: master | |
jobs: | |
deployment: | |
if: github.repository == 'ServiceNowDevProgram/example-instancescan-checks' | |
runs-on: ubuntu-latest | |
steps: | |
# - name: Log payload | |
# env: | |
# GITHUB_CONTEXT: ${{ toJson(github) }} | |
# run: | | |
# echo "$GITHUB_CONTEXT" | |
- name: Contact DPR | |
id: myRequest | |
uses: fjogeleit/http-request-action@v1.8.1 | |
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 }} |