OnLink · Repository data

GitHub to Jira Service Management Assets

When someone asks for “access to the payments repo”, the agent has to work out which repo, whether it’s private and who signs off. OnLink now brings GitHub repositories into Jira Service Management Assets, so the repo sits on the request and stays current.

Why put GitHub repositories in Assets

GitHub knows every repository your engineers work in. The requests about them land in Jira Service Management: access requests, incidents, change approvals and security findings. With repos in Assets, agents and automations read visibility, topics and last activity directly instead of opening GitHub.

The right repo on the request

Requesters pick the repo from an Assets field. Full name, visibility and language come with it.

Topics that route work

Repo topics like pci become Topic objects, so an automation can add a security approval.

Security posture at a glance

Visibility, secret scanning status and archived flags sync on a schedule, ready for audits and cleanup.

One CMDB across your stack

GitHub repos sit next to GitLab projects, cloud accounts and Entra ID or Okta identities, in the same schema.

What it looks like in Jira Service Management

A developer raises an access request and picks payments-api from an Assets field. The agent sees a private Go repo in the acme org, tagged pci and payments, with secret scanning on and a push two hours ago. An automation rule sees the pci topic and adds a security approval before anyone grants access. When the repo is archived in GitHub, the next sync updates it in Assets.

How GitHub maps to Assets

One API call, List organization repositories, becomes a GitHub Repository object type linked to the objects around it:

  • GitHub Repository, keyed on the numeric repo id: name, full name, description, URL, visibility, default branch, language, archived, fork, template, size, created date, last push, open issues, stars and forks
  • Topics: each repo topic as a link to a Topic object, created on first sync
  • Owner: the organization or user that owns the repo
  • Secret scanning: the repo’s secret scanning status, returned when the token user is a repo admin, org owner or security manager

Issues, Actions artifacts and projects follow the same pattern with their own endpoints.

How it works

GitHub
REST API · read-only token
OnLink
map fields · run on a schedule
JSM Assets
repos · issues · projects

Setup comes down to three parts. The setup guide has every field and value.

1

Create a fine-grained token

In GitHub Developer settings, generate a fine-grained personal access token with your organization as resource owner and Metadata set to read-only. Add Issues, Actions or Projects read access if you import those too.

2

Connect and pull repositories

Add an Assets Data Source in OnLink with bearer token auth. OnLink calls List organization repositories with page and per_page paging, 100 at a time, sorted by creation date so nothing shifts between pages.

3

Map fields and schedule the sync

Key repos on the numeric id, map the fields you need, and set a daily or hourly schedule. Use type=sources to skip forks, and AQL in Assets to filter on archived or language.

Sample mapping for GitHub repositories:

				
					key:id=RepositoryID
map:name=Name
map:full_name=Full Name
map:visibility=Visibility
map:default_branch=Default Branch
map:language=Language
map:archived=Archived
map:pushed_at=Last Push
map:owner.login=Owner
map:topics=Topics|Name=${topics}

				
			

GitHub joins the rest of your stack

OnLink is one app with 100+ connectors. GitHub joins GitLab, AWS, Azure and Google Cloud, plus device managers, HR systems, identity providers and security tools, all importing into the same Assets schema. One app to buy, one to manage.

Five questions you can answer once it's in Assets

Each repo is an Assets object, so the questions people ask in Slack become saved AQL searches:

QuestionAQL
Which repos are public?objectType = "GitHub Repository" AND Visibility = "public"
Which repos have secret scanning off?objectType = "GitHub Repository" AND "Secret Scanning" = "disabled"
Which repos hold PCI code?objectType = "GitHub Repository" AND Topics.Name = "pci"
Which repos haven’t had a push in a year?objectType = "GitHub Repository" AND "Last Push" < now(-365d)
Which empty repos can we clean up?objectType = "GitHub Repository" AND "Size (KB)" = 0 AND Archived = false
Bring your GitHub repositories into Assets

Start a free trial of OnLink on the Atlassian Marketplace and connect GitHub with a read-only token.

FAQ

Yes. OnLink imports repositories from GitHub’s List organization repositories API into Jira Service Management Assets, with topics as linked objects. It uses an Assets Data Source connection, so there is no custom code to maintain.

Yes. GitHub.com, Enterprise Cloud and Enterprise Server use the same REST API. Only the base URL differs, for example https://your-host/api/v3 for Enterprise Server.

With a fine-grained personal access token sent as a bearer token. Metadata read-only is all the repository list needs. If your org requires approval for fine-grained tokens, an owner approves it first.

Yes. Limit the token to selected repositories, use type=sources to skip forks, or filter in Assets with AQL on archived, language or topics.

You set a schedule per import: hourly, daily, weekly or monthly. Daily suits most repo data. Each run updates existing repos and adds new ones, and per_page=100 keeps API calls low.

On this page

GitHub in Assets

Start a free trial of OnLink on the Atlassian Marketplace and import your GitHub repositories today.

Try OnLink for GitHub to JSM Assets

Your service desk shouldn’t have to ask which repo it is. Bring GitHub repositories into Assets and keep them current on a schedule.

What you get with OnLink for GitHub: