-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
68 additions
and
69 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 |
---|---|---|
|
@@ -2,36 +2,35 @@ name: Release | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Build GitHub Action | ||
runs-on: ubuntu-latest | ||
container: node:16 | ||
steps: | ||
- name: Install packages | ||
run: | | ||
apt-get update | ||
apt-get install -y rsync | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci -q | ||
- name: Build release | ||
run: | | ||
npm run lint | ||
npm run build | ||
npm run pack | ||
- name: Copy files to release | ||
run: | | ||
mkdir release | ||
cp LICENSE release/ | ||
cp README.md release/ | ||
cp action.yml release/ | ||
cp -R dist/ release/dist/ | ||
- name: Push changes to the branch | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: release | ||
folder: release | ||
|
||
- name: Install packages | ||
run: | | ||
apt-get update | ||
apt-get install -y rsync | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci -q | ||
- name: Build release | ||
run: | | ||
npm run lint | ||
npm run build | ||
npm run pack | ||
- name: Copy files to release | ||
run: | | ||
mkdir release | ||
cp LICENSE release/ | ||
cp README.md release/ | ||
cp action.yml release/ | ||
cp -R dist/ release/dist/ | ||
- name: Push changes to the branch | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: release | ||
folder: release |
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,44 +1,44 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
release: | ||
name: Build GitHub Action | ||
runs-on: ubuntu-latest | ||
container: node:16 | ||
steps: | ||
- name: Install packages | ||
run: apt-get update && apt-get install -y rsync git | ||
- uses: actions/[email protected] | ||
- name: Install dependencies | ||
run: npm ci && npm install -g @vercel/ncc | ||
- name: Build release | ||
run: npm run lint && npm run build && npm run pack | ||
- name: Copy files to release | ||
run: | | ||
mkdir release | ||
cp README.md release/ | ||
cp action.yml release/ | ||
cp -R dist/ release/dist/ | ||
- name: Start Bright Discovery π | ||
id: discovery | ||
uses: NeuraLegion/run-discovery@release | ||
with: | ||
api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
name: GitHub discovery ${{ github.sha }} | ||
project: ${{ vars.PROJECT_ID }} | ||
hostname: ${{ vars.HOSTNAME }} | ||
discovery_types: | | ||
[ "crawler" ] | ||
crawler_urls: | | ||
[ "https://brokencrystals.com" ] | ||
hosts_filter: | | ||
[ ] | ||
- name: Stop the discovery π | ||
id: stop | ||
uses: ./release | ||
with: | ||
api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
scan: ${{ steps.discovery.outputs.id }} | ||
# jobs: | ||
# release: | ||
# name: Build GitHub Action | ||
# runs-on: ubuntu-latest | ||
# container: node:16 | ||
# steps: | ||
# - name: Install packages | ||
# run: apt-get update && apt-get install -y rsync git | ||
# - uses: actions/[email protected] | ||
# - name: Install dependencies | ||
# run: npm ci && npm install -g @vercel/ncc | ||
# - name: Build release | ||
# run: npm run lint && npm run build && npm run pack | ||
# - name: Copy files to release | ||
# run: | | ||
# mkdir release | ||
# cp README.md release/ | ||
# cp action.yml release/ | ||
# cp -R dist/ release/dist/ | ||
# - name: Start Bright Discovery π | ||
# id: discovery | ||
# uses: NeuraLegion/run-discovery@push-node-version | ||
# with: | ||
# api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
# name: GitHub discovery ${{ github.sha }} | ||
# project_id: ${{ vars.PROJECT_ID }} | ||
# hostname: ${{ vars.HOSTNAME }} | ||
# discovery_types: | | ||
# [ "crawler" ] | ||
# crawler_urls: | | ||
# [ "https://brokencrystals.com" ] | ||
# hosts_filter: | | ||
# [ ] | ||
# - name: Stop the discovery π | ||
# id: stop | ||
# uses: ./release | ||
# with: | ||
# api_token: ${{ secrets.BRIGHTSEC_TOKEN }} | ||
# discovery: ${{ steps.discovery.outputs.id }} |