From 22d30bae3ab5ffe07056455d9a2da4ec8521b3b5 Mon Sep 17 00:00:00 2001 From: Roberto Espejo Date: Thu, 10 Jun 2021 11:18:51 +0200 Subject: [PATCH] chore: removed old github actions, replacing with new standard checks --- .github/workflows/check-pr-title.yml | 12 ----------- .github/workflows/ci-standard-checks.yml | 26 +++++++++++++++++++++++ .github/workflows/secrets-scan.yml | 27 ------------------------ 3 files changed, 26 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/check-pr-title.yml create mode 100644 .github/workflows/ci-standard-checks.yml delete mode 100644 .github/workflows/secrets-scan.yml diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml deleted file mode 100644 index 15a883d489..0000000000 --- a/.github/workflows/check-pr-title.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: 'Jira Check' -on: - pull_request: - types: [opened, edited, synchronize, reopened] - -jobs: - publish: - runs-on: [ubuntu-latest] - steps: - - uses: deepakputhraya/action-pr-title@master - with: - regex: '^(\[[A-Z0-9]+-[1-9]\d+\]|\[Snyk\]|fix\(dependabot\)).+' # Regex the title should match. diff --git a/.github/workflows/ci-standard-checks.yml b/.github/workflows/ci-standard-checks.yml new file mode 100644 index 0000000000..2162889856 --- /dev/null +++ b/.github/workflows/ci-standard-checks.yml @@ -0,0 +1,26 @@ +name: CI Standard Checks +on: + push: + branches: + - develop + pull_request: + types: [opened, edited, synchronize, reopened] + branches: + - develop + +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 }} diff --git a/.github/workflows/secrets-scan.yml b/.github/workflows/secrets-scan.yml deleted file mode 100644 index c6b0614778..0000000000 --- a/.github/workflows/secrets-scan.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Secrets Scan - -on: [push, pull_request] - -jobs: - secrets-scan: - 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 - # your 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 }}