chore: add Zscaler ZIA audit log to regex #896
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
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- closed | |
permissions: | |
contents: read | |
jobs: | |
update_task_on_pr_open: | |
if: ${{ github.event.pull_request.state == 'open' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545 | |
name: Adds a comment to the related Asana task whenever a PR has been opened | |
with: | |
asana-pat: ${{ secrets.ASANA_PAT }} | |
action: "add-comment" | |
text: ${{ format('A Pull Request has been opened {0}', github.event.pull_request.html_url) }} | |
is-pinned: true | |
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545 | |
name: Moves the Asana task to "In Review" when the PR is opened | |
with: | |
asana-pat: ${{ secrets.ASANA_PAT }} | |
action: "move-section" | |
targets: '[{"projectNameRegex": "(S|s)print", "section": "In Review"}]' | |
update_task_on_pr_close: | |
if: ${{ github.event.pull_request.state == 'closed' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545 | |
name: Adds a comment to the related Asana task when the PR is closed | |
with: | |
asana-pat: ${{ secrets.ASANA_PAT }} | |
action: "add-comment" | |
text: ${{ format('A Pull Request is now closed {0}', github.event.pull_request.html_url) }} | |
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545 | |
name: Closes the related Asana tasks when the PR gets merged | |
if: github.event.pull_request.merged | |
with: | |
asana-pat: ${{ secrets.ASANA_PAT }} | |
action: "complete-task" | |
trigger-phrase-regex: "(C|c)loses" | |
is-complete: true |