Fix git workflow #8
Workflow file for this run
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
name: Autonolas registry | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/autonolas-registry/**' | |
pull_request: | |
paths: | |
- 'apps/autonolas-registry/**' | |
jobs: | |
build: | |
continue-on-error: False | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install modules | |
run: yarn | |
- run: git branch --track main origin/main | |
- name: Run ESLint | |
run: yarn nx lint autonolas-registry | |
# - name: Run Test | |
# run: yarn nx test autonolas-registry | |
scan: | |
name: gitleaks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.17.7' | |
- run: | | |
wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \ | |
tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \ | |
sudo install gitleaks /usr/bin && \ | |
gitleaks detect --source apps/autonolas-registry --report-format json --report-path autonolas-registry.json --exit-code 0 -v |