-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from polarityio/develop
Updating Github Actions & Adding config.json
- Loading branch information
Showing
6 changed files
with
478 additions
and
64 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 |
---|---|---|
@@ -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 |
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,88 @@ | ||
{ | ||
"name": "HYAS Insight", | ||
"acronym": "HYAS", | ||
"description": "Searches Hyas Insight for information on hashes, ips and domains", | ||
"entityTypes": [ | ||
"IPv4", | ||
"IPv6", | ||
"MD5", | ||
"domain", | ||
"email" | ||
], | ||
"customTypes": [ | ||
{ | ||
"key": "phone", | ||
"regex": "(((\\+\\d{1,2}|1)[\\s.-]?)?\\(?\\d{3}[)-.\\W]\\s?\\d{3}[-.\\W]\\d{4}?)|(\\d{7,14})" | ||
} | ||
], | ||
"defaultColor": "light-pink", | ||
"styles": [ | ||
"./styles/hyas.less" | ||
], | ||
"block": { | ||
"component": { | ||
"file": "./components/block.js" | ||
}, | ||
"template": { | ||
"file": "./templates/block.hbs" | ||
} | ||
}, | ||
"summary": { | ||
"component": { | ||
"file": "./components/summary.js" | ||
}, | ||
"template": { | ||
"file": "./templates/summary.hbs" | ||
} | ||
}, | ||
"request": { | ||
"cert": "", | ||
"key": "", | ||
"passphrase": "", | ||
"ca": "", | ||
"proxy": "", | ||
"rejectUnauthorized": true | ||
}, | ||
"logging": { | ||
"level": "info" | ||
}, | ||
"onDemandOnly": true, | ||
"options": [ | ||
{ | ||
"key": "apiKey", | ||
"name": "API Key", | ||
"description": "HYAS Api Key", | ||
"default": "", | ||
"type": "password", | ||
"userCanEdit": true, | ||
"adminOnly": false | ||
}, | ||
{ | ||
"key": "blocklist", | ||
"name": "Block list Domains and IPs", | ||
"description": "List of domains and IPs that you never want to send to Hyas", | ||
"default": "", | ||
"type": "text", | ||
"userCanEdit": false, | ||
"adminOnly": false | ||
}, | ||
{ | ||
"key": "domainBlocklistRegex", | ||
"name": "Domain Block List Regex", | ||
"description": "Domains that match the given regex will not be looked up (if blank, no domains will be block listed)", | ||
"default": "", | ||
"type": "text", | ||
"userCanEdit": false, | ||
"adminOnly": false | ||
}, | ||
{ | ||
"key": "ipBlocklistRegex", | ||
"name": "IP Block List Regex", | ||
"description": "IPs that match the given regex will not be looked up (if blank, no IPs will be block listed)", | ||
"default": "", | ||
"type": "text", | ||
"userCanEdit": false, | ||
"adminOnly": false | ||
} | ||
] | ||
} |
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.