Skip to content

Commit

Permalink
changes to status update
Browse files Browse the repository at this point in the history
  • Loading branch information
josekudiyirippil committed Aug 7, 2024
1 parent 60a7b1b commit 7b512ca
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pull-request-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,25 @@ jobs:
--global-var 'url=${{ vars.POSTMAN_API_URL_THEQ_DEV }}' \
--global-var 'userid=${{ vars.POSTMAN_USERID }}' \
--global-var 'userid_nonqtxn=${{ vars.POSTMAN_USERID_NONQTXN }}'
- name: Set Status to Success
uses: actions/github-script@v6
with:
script: |
const { context, github } = require('@actions/github');
const owner = context.repo.owner;
const repo = context.repo.repo;
const ref = context.payload.pull_request.head.sha;
await github.repos.createCommitStatus({
owner,
repo,
sha: ref,
state: 'success',
context: 'Newman Tests',
description: 'Newman Tests passed successfully',
target_url: 'https://github.com/${owner}/${repo}/actions/runs/${{ github.run_id }}'
});
owasp-staff:
name: OWASP ZAP Scan of Staff Frontend
Expand Down

0 comments on commit 7b512ca

Please sign in to comment.