Skip to content

[Prod] Security findings register ADR, PR quality checks workflow permissions #508

[Prod] Security findings register ADR, PR quality checks workflow permissions

[Prod] Security findings register ADR, PR quality checks workflow permissions #508

name: PR Jira Issue Link
on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review]
permissions:
contents: read
jobs:
validate_jira_issue_link:
if: ${{ github.event.pull_request.base.ref != 'production' }}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Validate Jira issue link in PR body
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: node ./tools/validate-pr-jira-issue-link.js