Skip to content

Commit

Permalink
Fix gitleaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya-atatakai committed Mar 19, 2024
1 parent d871802 commit 2fe9dcf
Showing 1 changed file with 33 additions and 36 deletions.
69 changes: 33 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,37 @@
# TODO: figure out how to trigger workflow from vercel for nx

# name: Lint
# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
name: Lint
on:
push:
branches:
- main
pull_request:

# jobs:
# build:
# continue-on-error: False
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install modules
# run: yarn
# - name: Run ESLint
# run: ./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx
# - name: Run Test
# run: yarn test

# 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 --report-format json --report-path leak_report -v
jobs:
# build:
# continue-on-error: False
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install modules
# run: yarn
# - name: Run ESLint
# run: ./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx
# - name: Run Test
# run: yarn test

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 -c apps/autonolas-registry/.gitleaksignore --report-format json --report-path leak_report -v

0 comments on commit 2fe9dcf

Please sign in to comment.