-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c00d278
commit fed075f
Showing
60 changed files
with
6,114 additions
and
3,903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Description | ||
|
||
Thank you for contributing to a JupiterOne integration! | ||
|
||
Please include a summary of the change and which issue is fixed. Please also | ||
include relevant motivation and context. List any dependencies that are required | ||
for this change. | ||
|
||
## Summary | ||
|
||
<!-- Summary here! --> | ||
|
||
## Type of change | ||
|
||
Please leave any irrelevant options unchecked. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to | ||
not work as expected) | ||
- [ ] This change requires a documentation update | ||
|
||
## Checklist | ||
|
||
### General Development Checklist: | ||
|
||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
|
||
### Integration Development Checklist: | ||
|
||
Please leave any irrelevant options unchecked. | ||
|
||
- [ ] I have checked for additional permissions required to call any new API | ||
endpoints, and have documented any additional permissions in | ||
`jupiterone.md`, where necessary. | ||
- [ ] My changes properly paginate the target service provider's API | ||
- [ ] My changes properly handle rate limiting of the target service provider's | ||
API | ||
- [ ] My new integration step is instrumented to execute in the correct order | ||
using `dependsOn` | ||
- [ ] I have referred to the | ||
[JupiterOne data model](https://github.com/JupiterOne/data-model/tree/main/src/schemas) | ||
to ensure that any new entities/relationships, and relevant properties, | ||
match the recommended model for this class of data | ||
- [ ] I have updated the `CHANGELOG.md` file to describe my changes | ||
- [ ] When changes include modifications to existing graph data ingestion, I've | ||
reviewed all existing managed questions referencing the entities, | ||
relationships, and their property names, to ensure those questions still | ||
function with my changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: J1 Integration deployment | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
j1-integration-deployment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get integration name | ||
id: get-integration-name | ||
shell: bash | ||
run: | | ||
NAME=${{ github.event.repository.name }} | ||
echo "integrationName=${NAME#graph-}" >> $GITHUB_OUTPUT | ||
- name: Get version number | ||
id: get-version-number | ||
shell: bash | ||
run: | | ||
TAG=${{ github.event.release.tag_name }} | ||
echo "versionNumber=${TAG#v}" >> $GITHUB_OUTPUT | ||
- name: Bump integration deployment version | ||
uses: JupiterOne/integration-github-actions/[email protected] | ||
with: | ||
integrationName: | ||
${{ steps.get-integration-name.outputs.integrationName }} | ||
releaseNotes: ${{ github.event.release.body }} | ||
version: ${{ steps.get-version-number.outputs.versionNumber }} | ||
githubToken: ${{ secrets.AUTO_GITHUB_PAT_TOKEN }} | ||
npmAuthToken: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: 'Peril' | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
TRANSPONDER_DOCKER_IMAGE: 081157560428.dkr.ecr.us-east-1.amazonaws.com/transponder:1 | ||
SECURITY_SCAN_IMAGE: ghcr.io/jupiterone/security-scan:latest | ||
|
||
jobs: | ||
Peril: | ||
name: Peril | ||
permissions: | ||
id-token: write | ||
contents: read | ||
packages: read | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Run build | ||
run: yarn install | ||
|
||
- name: Get Variables | ||
id: get-vars | ||
run: | | ||
if [[ "${GITHUB_REF}" == 'ref/head/main' && "${GITHUB_EVENT_NAME}" == 'push' ]]; | ||
then | ||
echo "aws-oidc-role=arn:aws:iam::081157560428:role/github-main-role" >> $GITHUB_OUTPUT | ||
else | ||
echo "aws-oidc-role=arn:aws:iam::081157560428:role/github-pull-request-role" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Configure aws credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: ${{ steps.get-vars.outputs.aws-oidc-role }} | ||
role-session-name: pr-role-session | ||
aws-region: us-east-1 | ||
|
||
- name: ECR login | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
id: amazon-ecr-login | ||
|
||
- name: Login to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.PACKAGE_TOKEN }} | ||
|
||
- name: Pull security-scan | ||
run: | | ||
docker pull $SECURITY_SCAN_IMAGE | ||
- name: Run security-scan | ||
run: | | ||
docker run \ | ||
--user root \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v `pwd`:`pwd` \ | ||
-e AWS_ACCESS_KEY_ID=${{ env.AWS_ACCESS_KEY_ID }} \ | ||
-e AWS_SECRET_ACCESS_KEY=${{ env.AWS_SECRET_ACCESS_KEY }} \ | ||
-e AWS_SESSION_TOKEN=${{ env.AWS_SESSION_TOKEN }} \ | ||
-e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \ | ||
-e GITHUB_REF_NAME=$GITHUB_REF_NAME \ | ||
-e GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER \ | ||
-e GITHUB_SERVER_URL=$GITHUB_SERVER_URL \ | ||
-e GITHUB_RUN_ID=$GITHUB_RUN_ID \ | ||
-e MODE=ci \ | ||
-w `pwd` $SECURITY_SCAN_IMAGE | ||
- name: Pull transponder | ||
run: | | ||
docker pull $TRANSPONDER_DOCKER_IMAGE | ||
- name: Run transponder | ||
run: | | ||
docker run --rm -v `pwd`:`pwd` -w `pwd` \ | ||
-e J1_API_KEY=${{ secrets.J1_API_KEY_TRANSPONDER }} \ | ||
-e J1_API_DOMAIN=${{ secrets.J1_API_DOMAIN_TRANSPONDER }} \ | ||
-e J1_ACCOUNT_ID=${{ secrets.J1_ACCOUNT_ID_TRANSPONDER }} \ | ||
$TRANSPONDER_DOCKER_IMAGE |
Oops, something went wrong.