Remove EOL node version from ci. Add next LTS, 20, version. #304
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: Github Secrets Scanner | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REPO: https://github.com/projecttacoma/cqm-execution | |
REMOTE_EXCLUDES_URL: https://raw.githubusercontent.com/semanticbits/bmat-gitleaks-automation/master/cqm-execution/gitleaks.toml | |
GITLEAKS_VERSION: v4.3.1 | |
steps: | |
- name: Execute Gitleaks | |
run: | | |
wget ${REMOTE_EXCLUDES_URL} -O gitleaks.toml | |
wget https://github.com/zricethezav/gitleaks/releases/download/${GITLEAKS_VERSION}/gitleaks-linux-amd64 -O gitleaks | |
chmod +x gitleaks | |
echo ${GITHUB_SHA} | |
echo "gitleaks --repo=${REPO} -v --pretty --redact --commit=${GITHUB_SHA} --config=gitleaks.toml" | |
./gitleaks --repo=${REPO} -v --pretty --redact --commit=${GITHUB_SHA} --config=gitleaks.toml | |
- name: Slack notification | |
if: failure() | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
uses: Ilshidur/action-slack@master | |
with: | |
args: 'Potential Secrets found in: https://github.com/{{ GITHUB_REPOSITORY }}/commit/{{ GITHUB_SHA }}. Link to build with full gitleaks output: https://github.com/{{ GITHUB_REPOSITORY }}/commit/{{ GITHUB_SHA }}/checks' |