Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TOOL-1870] Add jira-lint.yml for jira-action workflow #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/jira-lint.yml
Original file line number Diff line number Diff line change
@@ -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/)"
Loading