adharshmk96 / stk

Server tool kit - framework for developing server in golang
MIT License
2 stars 0 forks source link

platform: add secret detection and linting action #8

Open adharshmk96 opened 1 year ago

adharshmk96 commented 1 year ago
---

# This runs Yelp's 'detect-secrets': https://github.com/Yelp/detect-secrets/blob/master/README.md

name: Scan Code for Secrets

on:
  pull_request:
    - opened
    - reopened
    - ready_for_review
    - synchronize
  push:
    branches:
      - '**'
    tags:
      - '!**'

jobs:
  check-for-secrets:
    runs-on: 'ubuntu-latest'
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run Yelp's detect-secrets
        uses: RobertFischer/detect-secrets-action@v2.0.0
      - name: Commit back .secrets.baseline (if it was missing)
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "build(detect-secrets): Commit the newly-generated .secrets.baseline file"
adharshmk96 commented 11 months ago

refer: https://github.com/goreleaser/goreleaser/blob/main/.github/workflows/lint.yml for linting