reload/github-security-jira
소개
Github Action for integrating Security Alerts with JIRA
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgithub-security-jira
GitHub Action for mapping Dependabot security alerts to Jira tickets.
Setup
You need the following pieces set up to sync alerts with Jira:
- Two repo secrets containing a GitHub access token and a Jira API token, respectively.
- A workflow file which runs the action on a schedule, continually creating new tickets when necessary.
Repo secrets
The reload/github-security-jira action requires you to create two encrypted secrets in the repo:
- A secret called
GitHubSecurityTokenwhich should contain a Personal Access Token for the GitHub user under which this action should be executed. The token must include thepublic_reposcope if checking only public repos, or thereposcope for use on private repos. Also, the user must have access to security alerts in the repo. - A secret called
JiraApiTokencontaining an API Token for the Jira user that should be used to create tickets.
Workflow file setup
The GitHub workflow file should reside in any repo where you want to sync security alerts with Jira.
It has some required and some optional settings, which are passed to the action as environment variables:
GH_SECURITY_TOKEN: A reference to the repo secretGitHubSecurityToken(REQUIRED)JIRA_TOKEN: A reference to the repo secretJiraApiToken(REQUIRED)JIRA_HOST: The endpoint for your Jira instance, e.g. https://foo.atlassian.net (REQUIRED)JIRA_USER: The ID of the Jira user which is associated with the 'JiraApiToken' secret, eg '[email protected]' (REQUIRED)JIRA_PROJECT: The project key for the Jira project where issues should be created, egTESTorABC. (REQUIRED)JIRA_ISSUE_TYPE: Type of issue to create, e.g.Security. Defaults toBug. (Optional)JIRA_WATCHERS: Jira users to add as watchers to tickets. Separate multiple watchers with comma (no spaces).JIRA_ISSUE_LABELS: Jira labels to add to tickets. Separate multiple labels with comma (no spaces).JIRA_RESTRICTED_COMMENT_ROLE: A comment with restricted visibility to this role is posted with info about who was added as watchers to the issue. Defaults toDevelopers. (Optional)
Here is an example setup which runs this action every 6 hours.
name: GitHub Security Alerts for Jira
on:
schedule:
- cron: '0 */6 * * *'
jobs:
syncSecurityAlerts:
runs-on: ubuntu-latest
steps:
- name: "Sync security alerts to Jira issues"
uses: reload/[email protected]
env:
GH_SECURITY_TOKEN: ${{ secrets.GitHubSecurityToken }}
JIRA_TOKEN: ${{ secrets.JiraApiToken }}
JIRA_HOST: https://foo.atlassian.net
JIRA_USER: [email protected]
JIRA_PROJECT: ABC
JIRA_ISSUE_TYPE: Security
JIRA_WATCHERS: [email protected],[email protected]
Local development
Copy docker-composer.override.example.yml to docker-composer.override.yml and edit according to your settings.
After that, you can execute the Symfony console app like so:
docker-compose run --rm ghsec-jira --verbose --dry-run
Remove the --dry-run option to actually create issues in Jira.
관련 프로젝트 살펴보기
불러오는 중…