This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
24 changed files
with
3,598 additions
and
1,697 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
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
node_modules/ | ||
dist/ | ||
.env* | ||
!.env.example | ||
.j1-integration | ||
.j1-integration/ | ||
.j1-integration-cache/ | ||
.env | ||
.eslintcache | ||
.npmrc | ||
tsconfig.tsbuildinfo | ||
.npmrc |
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 |
---|---|---|
@@ -1 +1 @@ | ||
14 | ||
18 |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ dist | |
coverage/ | ||
.j1-integration | ||
.j1-integration-cache | ||
CHANGELOG.md | ||
.gitleaks.yml | ||
CHANGELOG.md |
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 |
---|---|---|
@@ -1,11 +1,25 @@ | ||
FROM node:14-alpine | ||
FROM node:18-bullseye-slim as builder | ||
|
||
ENV JUPITERONE_INTEGRATION_DIR=/opt/jupiterone/integration | ||
|
||
COPY package.json yarn.lock tsconfig.json LICENSE ${JUPITERONE_INTEGRATION_DIR}/ | ||
COPY package.json yarn.lock tsconfig.dist.json tsconfig.json LICENSE ${JUPITERONE_INTEGRATION_DIR}/ | ||
COPY src/ ${JUPITERONE_INTEGRATION_DIR}/src | ||
WORKDIR ${JUPITERONE_INTEGRATION_DIR} | ||
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/api/lists/* | ||
RUN yarn install | ||
RUN yarn build:docker | ||
|
||
|
||
FROM node:18-bullseye-slim | ||
ENV JUPITERONE_INTEGRATION_DIR=/opt/jupiterone/integration | ||
COPY --from=builder --chown=node:node ${JUPITERONE_INTEGRATION_DIR}/dist ${JUPITERONE_INTEGRATION_DIR} | ||
COPY --from=builder --chown=node:node ${JUPITERONE_INTEGRATION_DIR}/yarn.lock ${JUPITERONE_INTEGRATION_DIR} | ||
COPY scripts/ ${JUPITERONE_INTEGRATION_DIR}/scripts | ||
WORKDIR ${JUPITERONE_INTEGRATION_DIR} | ||
RUN yarn install | ||
RUN apt-get update && apt-get install -y python3 | ||
RUN yarn install --production --fronzen-lockfile --cache-folder ./ycache && yarn global add --cache-folder ./ycache @jupiterone/integration-sdk-cli && rm -rf ./ycache && chown -R node:node /opt/jupiterone | ||
RUN export PATH="$(yarn global bin):$PATH" | ||
|
||
USER node | ||
|
||
ENTRYPOINT /usr/local/bin/yarn --silent j1-integration run -i ${INTEGRATION_INSTANCE_ID} --disable-schema-validation --api-base-url ${JUPITERONE_API_BASE_URL:-https://api.us.jupiterone.io} --account ${JUPITERONE_ACCOUNT} --api-key ${JUPITERONE_API_KEY} | ||
CMD ["sh", "scripts/execute.sh"] |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
module.exports = { | ||
...require('@jupiterone/integration-sdk-dev-tools/config/jest'), | ||
setupFiles: ['dotenv/config'], | ||
}; | ||
module.exports = require('@jupiterone/integration-sdk-dev-tools/config/jest'); |
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,16 @@ | ||
--- | ||
sourceId: managed:gitlab | ||
integrationDefinitionId: '${integration_definition_id}' | ||
questions: | ||
[] | ||
# - id: integration-question-template-replace-me | ||
# title: What kinds of questions will this integration support? | ||
# description: | ||
# TODO Every integration should contribute questions! Please be careful | ||
# to replace this before deploying the integration to JupiterOne. | ||
# queries: | ||
# - name: good | ||
# query: | | ||
# find * with _integrationDefinitionId = '${integration_definition_id}' | ||
# tags: | ||
# - template |
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
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
Oops, something went wrong.