From 3bf679fa188ebddbe78135f91c13956209611e83 Mon Sep 17 00:00:00 2001 From: andy hubley Date: Wed, 23 Oct 2024 09:50:08 -0400 Subject: [PATCH] add jira-lint.yml for jira-action workflow --- .github/workflows/jira-lint.yml | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/jira-lint.yml diff --git a/.github/workflows/jira-lint.yml b/.github/workflows/jira-lint.yml new file mode 100644 index 0000000..414b551 --- /dev/null +++ b/.github/workflows/jira-lint.yml @@ -0,0 +1,43 @@ +name: JIRA Lint +permissions: + actions: write + checks: write + contents: write + deployments: write + issues: write + discussions: write + packages: write + pages: write + pull-requests: write + repository-projects: write + security-events: write + statuses: write +on: + pull_request: + types: + - opened + - ready_for_review + - synchronize + - edited +jobs: + jira-lint: + runs-on: [self-hosted, linux, x64] + # We don't want to run this job on draft and dependabot PRs + if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]' + steps: + - name: Checkout + uses: actions/checkout@v2 + + - uses: actions/checkout@v2 + with: + path: .github/actions/jira-action + repository: redcanaryco/jira-action + ssh-key: ${{ secrets.JIRA_ACTION_SSH }} + + - uses: ./.github/actions/jira-action/ + name: jira-lint + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + jira-token: ${{ secrets.JIRA_TOKEN }} + jira-base-url: https://redcanary.atlassian.net + skip-branches: "^((master|main)$|dependabot/)" \ No newline at end of file