Skip to content

GitHub Action that searches for given keyword in your codebase path.

Notifications You must be signed in to change notification settings

kiliczsh/codebase-scanner

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codebase Scanner

Searches for given keyword in your codebase path.

Sample Config

with:
  scan-keyword: 'console.log'
  codebase-path: './codebase/src'
  extension-filter: '.js'
  pass-fail: 'false'

Sample Workflow

name: Codebase Scanner

on:
  push:
    branches: [ main ]

jobs:
  scan_for_keyword:
    runs-on: ubuntu-20.04
    steps:
      - name: Get Code Into Codebase
        uses: actions/checkout@v2
        with:
          path: ./codebase
      - name: Codebase Scanner
        id: codebase-scanner
        uses: kiliczsh/[email protected]
        with:
          scan-keyword: 'console.log'
          codebase-path: './codebase/src'
          extension-filter: '.js'
          pass-fail: 'true'
      - name: Display Result
        run: echo " ${{ steps.codebase-scanner.outputs.results }}"


About

GitHub Action that searches for given keyword in your codebase path.

Topics

Resources

Stars

Watchers

Forks