Merge pull request #4 from Typeform/SETI-1159-add-ci-standard-workflow

chore: [SETI-1159] 👷 add ci standard workflow
This commit is contained in:
Matias Ozdy 2021-07-05 09:12:38 +02:00 committed by GitHub
commit fb4727a334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 30 deletions

View file

@ -0,0 +1,26 @@
name: CI Standard Checks
on:
push:
branches:
- master
pull_request:
types: [opened, edited, synchronize, reopened]
branches:
- master
jobs:
ci-standard-checks:
runs-on: [ubuntu-latest]
steps:
- name: Check Out Source Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: CI Standard Checks
uses: Typeform/ci-standard-checks@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
dockerUsername: ${{ secrets.GITLEAKS_DOCKER_USERNAME }}
dockerPassword: ${{ secrets.GITLEAKS_DOCKER_PASSWORD }}

View file

@ -1,30 +0,0 @@
name: Secrets Scan
on: [push, pull_request]
jobs:
secrets-scan:
# for private repositories
#runs-on: [self-hosted, automated-checks]
# for public repositories
runs-on: [ubuntu-latest]
steps:
- name: Check Out Source Code
uses: actions/checkout@v2
with:
# By default, actions/checkout@v2 does a shallow clone with
# depth 1. 0 means 'fetch the whole history'. We use it here
# since we don't know how many commits a PR could have. If
# you're repo is very large and cloning is slow, you could
# try tweaking it to a value that the typical PR wouldn't
# exceed but that also prevents getting the full history
fetch-depth: 0
- name: Secrets Scan
uses: Typeform/.github/shared-actions/secrets-scan@master
with:
docker-registry: ${{ secrets.GITLEAKS_DOCKER_REGISTRY }}
docker-username: ${{ secrets.GITLEAKS_DOCKER_USERNAME }}
docker-password: ${{ secrets.GITLEAKS_DOCKER_PASSWORD }}
gh-token: ${{ secrets.GH_TOKEN }}