Fix gitleaks #13
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
# TODO: figure out how to trigger workflow from vercel for nx | ||
name: Tokenomics | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'apps/tokenomics/**' | ||
pull_request: | ||
paths: | ||
- 'apps/tokenomics/**' | ||
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 tokenomics | ||
- name: Run Test | ||
run: yarn nx test tokenomics | ||
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: | | ||
<<<<<<< Updated upstream | ||
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/tokenomics --report-format json --report-path tokenomics.json --exit-code 0 -v | ||
======= | ||
wget https://github.com/zricethezav/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_arm64.tar.gz && \ | ||
tar -xzf gitleaks_8.18.2_linux_arm64.tar.gz && \ | ||
sudo install gitleaks /usr/bin && \ | ||
gitleaks detect -b apps/tokenomics/gitleaks-report.json -s apps/tokenomics -v | ||
>>>>>>> Stashed changes |