From 80cd15cad1baa0e791fbddc21a715316ca713d1b Mon Sep 17 00:00:00 2001 From: polarityio Date: Mon, 9 Jan 2023 16:26:09 -0600 Subject: [PATCH 1/8] Updated Github Action: run-int-dev-checklist.yml --- .github/workflows/run-int-dev-checklist.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-int-dev-checklist.yml b/.github/workflows/run-int-dev-checklist.yml index 2649a40..ffa86d7 100644 --- a/.github/workflows/run-int-dev-checklist.yml +++ b/.github/workflows/run-int-dev-checklist.yml @@ -1,21 +1,23 @@ -# This workflow will run on a Pull Request is created on both master develop -# It run as series of checks from the Integration Developement Checklist - - name: Run Integration Development Checklist on: pull_request: - branches: [ master, develop ] + branches: [ master, main, develop ] jobs: run-integration-development-checklist: runs-on: ubuntu-latest + container: 'centos:7' steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - name: Test NPM Install + id: test-npm-install + run: | + npm ci - name: Polarity Integration Development Checklist id: int-dev-checklist - uses: polarityio/polarity-integration-development-checklist@v1.0.0 + uses: polarityio/polarity-integration-development-checklist@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 887643ce7edbf6e2727939fa6c05d66c071979dc Mon Sep 17 00:00:00 2001 From: polarityio Date: Mon, 9 Jan 2023 16:26:10 -0600 Subject: [PATCH 2/8] Updated Github Action: release-current-version.yml --- .github/workflows/release-current-version.yml | 57 ++----------------- 1 file changed, 5 insertions(+), 52 deletions(-) diff --git a/.github/workflows/release-current-version.yml b/.github/workflows/release-current-version.yml index c3dea28..6d6faae 100644 --- a/.github/workflows/release-current-version.yml +++ b/.github/workflows/release-current-version.yml @@ -1,58 +1,11 @@ -# This workflow will run on merge of a PR or push to master -# It will run the integration developement checklist and if that passes -# creates a new release with the Release and Tag name both being the -# package.json version and will with a created tgz file and the SHA256 has in the release body - - name: Release Current Version on: push: - branches: [ master ] + branches: [ master, main ] jobs: - release-current-version: - runs-on: ubuntu-latest - container: 'centos:7' - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - - name: Get NPM Version - id: package-version - uses: martinbeentjes/npm-get-version-action@95bc31c6dd3145896c110e382f840bb1e750d09c - - name: Create Build - id: create_build - run: | - npm install && - cd .. && - tar --exclude="./${{ github.event.repository.name }}/.git" --exclude="./${{ github.event.repository.name }}/.gitignore" --exclude="./${{ github.event.repository.name }}/package-lock.json" --exclude="./${{ github.event.repository.name }}/.github" -czvf "${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version }}.tgz" "./${{ github.event.repository.name }}" && - echo "::set-output name=build_hash::$(sha256sum '${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version }}.tgz' | grep -oE '^[^ ]*' )" && - cd ${{ github.event.repository.name }} - - name: Polarity Integration Development Checklist - id: int-dev-checklist - uses: polarityio/polarity-integration-development-checklist@v1.0.0 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create Versioned Release - id: create_versioned_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.package-version.outputs.current-version}} - release_name: ${{ steps.package-version.outputs.current-version}} - body: | - SHA256: ${{ steps.create_build.outputs.build_hash }} - draft: false - prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_versioned_release.outputs.upload_url }} - asset_path: ../${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version}}.tgz - asset_name: ${{ github.event.repository.name }}-${{ steps.package-version.outputs.current-version}}.tgz - asset_content_type: application/gzip + Run: + uses: polarityio/polarity-github-actions/.github/workflows/release-server-versions-for-int-store.yml@master + # with: + # use-integration-development-checklist: false From 46111964cf809ccb19bb8f605de2db7470f7c13f Mon Sep 17 00:00:00 2001 From: polarityio Date: Mon, 9 Jan 2023 16:41:42 -0600 Subject: [PATCH 3/8] Updated Github Action: run-int-dev-checklist.yml From 5ff7c7d753d572b05ad955b62eb214fe9c8db825 Mon Sep 17 00:00:00 2001 From: polarityio Date: Mon, 9 Jan 2023 16:41:43 -0600 Subject: [PATCH 4/8] Updated Github Action: release-current-version.yml From bcefcdf41c708097ca7d323aa65581fae4f23f83 Mon Sep 17 00:00:00 2001 From: polarityio Date: Mon, 9 Jan 2023 16:44:13 -0600 Subject: [PATCH 5/8] Adding config.json --- config/config.json | 136 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 config/config.json diff --git a/config/config.json b/config/config.json new file mode 100644 index 0000000..b65a542 --- /dev/null +++ b/config/config.json @@ -0,0 +1,136 @@ +{ + "name": "urlscan", + "acronym": "URLS", + "description": "Searches the urlscan.io API and returns results from the most recent, relevant scan", + "entityTypes": [ + "IPv4", + "IPv6", + "IPv4CIDR", + "domain", + "url", + "SHA256" + ], + "onDemandOnly": true, + "styles": [ + "./styles/us.less" + ], + "block": { + "component": { + "file": "./components/us-block.js" + }, + "template": { + "file": "./templates/us-block.hbs" + } + }, + "summary": { + "component": { + "file": "./components/us-summary.js" + }, + "template": { + "file": "./templates/us-summary.hbs" + } + }, + "request": { + "cert": "", + "key": "", + "passphrase": "", + "ca": "", + "proxy": "", + "rejectUnauthorized": true + }, + "logging": { + "level": "info" + }, + "options": [ + { + "key": "apiKey", + "name": "API Key", + "description": "A valid urlscan API Key which can be generated on the urlscan dashboard. (Only required for manual new URL submission)", + "default": "", + "type": "password", + "userCanEdit": true, + "adminOnly": false + }, + { + "key": "submitUrl", + "name": "Allow Manual URL Submission for Scanning", + "description": "If there are no search results, this allows you to choose to submit the url for scanning when searching On Demand. (API Key Required)", + "default": false, + "type": "boolean", + "userCanEdit": false, + "adminOnly": true + }, + { + "key": "maliciousOnly", + "name": "View Malicious Indicators Only", + "description": "If checked, only indicators flagged as malicious will be returned", + "default": false, + "type": "boolean", + "userCanEdit": true, + "adminOnly": false + }, + { + "key": "includeTaskedIndicators", + "name": "Search Tasked URLs and Domains", + "description": "If checked, the integration will search tasked URLs and Domains in addition to the primary domain (defaults to true).", + "default": true, + "type": "boolean", + "userCanEdit": false, + "adminOnly": true + }, + { + "key": "blocklist", + "name": "Ignored Entities", + "description": "List of domains and IPs that you never want to send to urlscan", + "default": "", + "type": "text", + "userCanEdit": false, + "adminOnly": false + }, + { + "key": "domainBlocklistRegex", + "name": "Ignored Domain Regex", + "description": "Domains that match the given regex will not be looked up.", + "default": "", + "type": "text", + "userCanEdit": false, + "adminOnly": false + }, + { + "key": "ipBlocklistRegex", + "name": "Ignored IP Regex", + "description": "IPs that match the given regex will not be looked up.", + "default": "", + "type": "text", + "userCanEdit": false, + "adminOnly": false + }, + { + "key": "downloadScreenshot", + "name": "Proxy Screenshots through Polarity Server", + "description": "If checked, the Overlay Window will receive the URL's screenshot from the Polarity server rather than directly from the urlscan website. If your screenshot images are not properly displaying try enabling this option as it can resolve issues in some environments with unsupported web proxy configurations on the client.", + "default": false, + "type": "boolean", + "userCanEdit": false, + "adminOnly": true + }, + { + "key": "maxConcurrent", + "name": "Max Concurrent Requests", + "description": "Maximum number of concurrent requests. Integration must be restarted after changing this option. Defaults to 20.", + "default": 20, + "type": "number", + "userCanEdit": false, + "adminOnly": true + }, + { + "key": "minTime", + "name": "Minimum Time Between Lookups", + "description": "Minimum amount of time in milliseconds between lookups. Integration must be restarted after changing this option. Defaults to 100.", + "default": 100, + "type": "number", + "userCanEdit": false, + "adminOnly": true + } + ] +} \ No newline at end of file From 5aff9b32efd89fc654908812879bf40b383b3732 Mon Sep 17 00:00:00 2001 From: polarityio Date: Fri, 13 Jan 2023 17:27:33 -0600 Subject: [PATCH 6/8] Updating File: package.json --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8129c3d..49c4606 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "main": "./integration.js", "name": "urlscan", - "version": "3.6.1", + "version": "3.6.2", + "main": "./integration.js", "private": true, "scripts": { "test": "jest" @@ -16,4 +16,4 @@ "jest": "^28.1.0", "nock": "^13.2.4" } -} +} \ No newline at end of file From 791b63bcf44f8dd34b5df72a5a74d7bb0b209096 Mon Sep 17 00:00:00 2001 From: polarityio Date: Fri, 13 Jan 2023 17:27:33 -0600 Subject: [PATCH 7/8] Updating File: package-lock.json --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 788df1e..bacd2e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "urlscan", - "version": "3.6.1", + "version": "3.6.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2956,4 +2956,4 @@ "dev": true } } -} +} \ No newline at end of file From 07326d14e0029ba4166935e291c73ace126d6fd6 Mon Sep 17 00:00:00 2001 From: Jon Penwood Date: Mon, 23 Jan 2023 15:45:28 -0600 Subject: [PATCH 8/8] chore: Added defaultColor to config files --- config/config.js | 1 + config/config.json | 14 +++----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/config/config.js b/config/config.js index f65761b..97f1de3 100644 --- a/config/config.js +++ b/config/config.js @@ -25,6 +25,7 @@ module.exports = { description: 'Searches the urlscan.io API and returns results from the most recent, relevant scan', entityTypes: ['IPv4', 'IPv6', 'IPv4CIDR', 'domain', 'url', 'sha256'], + defaultColor: 'light-pink', onDemandOnly: true, /** * An array of style files (css or less) that will be included for your integration. Any styles specified in diff --git a/config/config.json b/config/config.json index b65a542..b181744 100644 --- a/config/config.json +++ b/config/config.json @@ -2,18 +2,10 @@ "name": "urlscan", "acronym": "URLS", "description": "Searches the urlscan.io API and returns results from the most recent, relevant scan", - "entityTypes": [ - "IPv4", - "IPv6", - "IPv4CIDR", - "domain", - "url", - "SHA256" - ], + "entityTypes": ["IPv4", "IPv6", "IPv4CIDR", "domain", "url", "SHA256"], + "defaultColor": "light-pink", "onDemandOnly": true, - "styles": [ - "./styles/us.less" - ], + "styles": ["./styles/us.less"], "block": { "component": { "file": "./components/us-block.js"