diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9eef1971..8548a732 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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