PromucFlow_constructor/.github/workflows/CypressAddKnownfailedtests.yml
Arun 693aa75e79
fix: Security Vulnerability in GitHub Workflows (#22888)
"github.event.issue.title" is potentially untrusted. avoid using it
directly in inline scripts. instead, pass it through an environment
variable. see
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
for more details.
2023-05-02 10:59:34 +05:30

57 lines
1.9 KiB
YAML

name: Cypress Add Known failed tests
on:
issues:
types: [opened, closed, reopened]
jobs:
IssueOpened:
if: (github.event.action == 'opened' || github.event.action == 'reopened') && contains( github.event.issue.labels.*.name, 'CI impacted')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout the merged commit from PR and base branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: View issue information
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
XATATOKEN: ${{ secrets.XATA_TOKEN }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
run: |
echo "Issue title: $ISSUE_TITLE"
echo "Issue body: $ISSUE_BODY"
#echo "$GITHUB_CONTEXT"
chmod a+x app/client/cypress/xataadd.sh
echo "${{ github.event.issue.title }}"|awk '{print $2}'
echo "${{ github.event.issue.title }}"|awk '{print $2}'|xargs app/client/cypress/xataadd.sh
IssueClosed:
if: github.event.action == 'closed' && contains( github.event.issue.labels.*.name, 'CI impacted')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout the merged commit from PR and base branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: View issue information
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
XATATOKEN: ${{ secrets.XATA_TOKEN }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
run: |
echo "Issue title: $ISSUE_TITLE"
echo "Issue body: $ISSUE_BODY"
#echo "$GITHUB_CONTEXT"
chmod a+x app/client/cypress/xatadel.sh
echo "${{ github.event.issue.title }}"|awk '{print $2}'|xargs app/client/cypress/xatadel.sh