{"id":18374722,"url":"https://github.com/jupiterone/integration-github-actions","last_synced_at":"2025-06-23T00:06:39.011Z","repository":{"id":87998877,"uuid":"581259694","full_name":"JupiterOne/integration-github-actions","owner":"JupiterOne","description":"Shared GitHub Actions from the integration repositories","archived":false,"fork":false,"pushed_at":"2023-12-05T17:51:31.000Z","size":15394,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-11T03:58:41.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JupiterOne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-22T17:38:17.000Z","updated_at":"2023-01-17T17:04:43.000Z","dependencies_parsed_at":"2023-09-26T12:05:48.784Z","dependency_job_id":"1bb4b025-db22-4051-952c-be6fe6b489be","html_url":"https://github.com/JupiterOne/integration-github-actions","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/JupiterOne/integration-github-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JupiterOne%2Fintegration-github-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JupiterOne%2Fintegration-github-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JupiterOne%2Fintegration-github-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JupiterOne%2Fintegration-github-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JupiterOne","download_url":"https://codeload.github.com/JupiterOne/integration-github-actions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JupiterOne%2Fintegration-github-actions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386810,"owners_count":23150873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T00:15:46.406Z","updated_at":"2025-06-23T00:06:33.999Z","avatar_url":"https://github.com/JupiterOne.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github actions for integration repositories\nThis repository consolidates the github actions used by the JupiterOne integration repositories.\n\n## How to use\n- Create a workflow file inside the `/.github` in the repo you want to add the new action.\n- Add the action you want from this repo, e.g:\n```yaml\n  - name: Sample step\n    uses: JupiterOne/integration-github-actions/action-test@BRANCH-OR-TAG\n```\nNote `@BRANCH-OR-TAG` can be optional, that's useful just for testing.\n\n## How to contribute\nIn order to create a new action, just create a new folder with the name of the action and inside of it, add `action.yml` describing the workflow.\nIf a script needs to be executed, add the script inside the `src/` folder but in the workflow file, reference the transpiled file in the lib folder.\n\n## Available actions\n### Action test\nJust a github action that you can use to test in your repo. This action just say Hello. This is an example of how to implement an action using a `.ts` file.\n#### Example Usage:\n```yaml\n- name: Test action-test\n  uses: JupiterOne/integration-github-actions/action-test@INT-6300\n  with:\n    who-to-greet: 'David'\n```\n### Bump integration deployment version\nThis GitHub Action can be added to graph-* repos to automatically create pull requests in the integration-deployments repository with the new version of the graph.\n\n##### Inputs\n\n| Id               | Description                                                                          | Required |\n| ---------------- | ------------------------------------------------------------------------------------ | -------- |\n| integrationName  | Integration name as it appears in the integration-deployments repo                   | Yes      |\n| graphProjectName | The name of the graph project. Default: `graph-${ integrationName }`.                | No       |\n| version          | New version of the graph npm package                                                 | No       |\n| releaseNotes     | Release notes to include in pull request                                             | No       |\n| githubToken      | GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT). Default: `github.token` | No       |\n| npmAuthToken     | NPM_AUTH_TOKEN to install JupiterOne dependencies                                    | Yes      |\n| mainBranch       | Base branch to pull changes from integration-deployments. Default: `main`            | No       |\n\n##### Outputs\n\n| Id               | Description                     |\n| ---------------- | ------------------------------- |\n| pull-request-url | URL of the created pull request |\n\n##### Example Usage:\n```yaml\n  - name: Bump integration deployment version\n    uses: JupiterOne/integration-github-actions/create-integration-deployment@v1.0.0\n    id: create-version-pr\n    with:\n      integrationName:\n        ${{ steps.get-integration-name.outputs.integrationName }}\n      version: ${{ steps.get-version-number.outputs.versionNumber }}\n      githubToken: ${{ secrets.AUTO_GITHUB_PAT_TOKEN }}\n      npmAuthToken: ${{ secrets.NPM_AUTH_TOKEN }}\n  - name: Print URL\n    shell: bash\n    run: echo \"${{ steps.create-version-pr.outputs.pull-request-url }}\"\n```\n\n\n\n#### Troubleshooting `create-integration-deplyment`\n\nThe `JupiterOne/integration-github-actions/create-integration-deployment` action is often used in conjunction with the `jupiterone/action-npm-build-releas` action. These actions require a number of configurations to ensure they can succeed. These include:\n\n1. Access to the `NPM_AUTH_TOKEN` org secret\n2. Access to the `AUTO_GITHUB_PAT_TOKEN` org secret\n3. Permission for the `j1-internal-automation` github user to override branch protection rules\n4. Configured without any required status checks\n\nIf your workflows are failing, start by running the following queries in j1.apps.us.jupiterone.io to find out if your repository is misconfigured.\n\n##### Repos that don’t have the NPM_AUTH_TOKEN secret\n```\nFIND \n  github_repo WITH name ^= 'graph-' AND archived != true as r\n  THAT !USES github_org_secret WITH name = 'NPM_AUTH_TOKEN'\nRETURN r.name\nORDER BY r.name ASC\n```\n\n##### Repos that don’t have the AUTO_GITHUB_PAT_TOKEN secret\n```\nFIND \n  github_repo WITH name ^= 'graph-' AND archived != true as r\n  THAT !USES github_org_secret WITH name = 'AUTO_GITHUB_PAT_TOKEN'\nRETURN r.name\nORDER BY r.name ASC\n```\n\n##### Repos that don’t allow j1-internal-automation to bypass branch protection\n```\nFIND \n  github_repo WITH name ^= 'graph-' AND archived != true as r\n  THAT !HAS \u003e\u003e github_branch_protection_rule \n  THAT OVERRIDES \u003c\u003c github_user WITH name = 'j1-internal-automation' \nRETURN r.name\nORDER BY r.name ASC\n```\n\n##### Repos that have required status checks\n```\nFIND \n  github_repo WITH name ^= 'graph-' AND archived != true as r\n  THAT HAS github_branch_protection_rule WITH requiredStatusChecks != undefined\nRETURN r.name\nORDER BY r.name ASC\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupiterone%2Fintegration-github-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjupiterone%2Fintegration-github-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupiterone%2Fintegration-github-actions/lists"}