mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-06-03 05:49:25 +00:00
Merge pull request #4 from Typeform/SETI-1159-add-ci-standard-workflow
chore: [SETI-1159] 👷 add ci standard workflow
This commit is contained in:
commit
fb4727a334
26
.github/workflows/ci-standard-checks.yml
vendored
Normal file
26
.github/workflows/ci-standard-checks.yml
vendored
Normal 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 }}
|
30
.github/workflows/secrets-scan.yml
vendored
30
.github/workflows/secrets-scan.yml
vendored
|
@ -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 }}
|
Loading…
Reference in a new issue