Add stackbit.config.ts (#172) #1155
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Renovate Bot GitHub Action | |
uses: renovatebot/github-action@v40.2.5 | |
- name: First interaction | |
uses: actions/first-interaction@v1.3.0 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
issue-message: 'Thank you for your issue!' | |
pr-message: 'Thank you for your pull request!' | |
- name: Renovate Bot GitHub Action | |
uses: renovatebot/github-action@v36.0.0 | |
with: | |
configurationFile: '.github/renovate.json' | |
token: ${{ secrets.RENOVATE_TOKEN }} | |
useSlim: true | |
env-regex: '^(?:RENOVATE_\\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS)$' | |
renovate-version: 'latest' | |
- name: Upload Tool Results To Pixeebot | |
uses: pixee/upload-tool-results-action@v2.3.0 | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6.1.0 | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install safety | |
pip install truffleHog | |
curl -sSL https://github.com/zricethezav/gitleaks/releases/download/v8.2.1/gitleaks-linux-amd64.tar.gz | tar -xzf - -C /usr/local/bin gitleaks | |
npm install -g snyk | |
npm install -g @actions/core @actions/github | |
- name: Run Safety | |
run: | | |
safety check --full-report | |
- name: Run truffleHog | |
run: | | |
trufflehog filesystem --directory . --json | tee trufflehog_results.json | |
- name: Run Gitleaks | |
run: | | |
gitleaks detect --source . --report-format json --report-path gitleaks_results.json | |
- name: Run Snyk | |
run: | | |
snyk auth ${{ secrets.SNYK_TOKEN }} | |
snyk test | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: security-reports | |
path: | | |
trufflehog_results.json | |
gitleaks_results.json |