Skip to content
log-out

GitHub Action

Codebase Scanner

v1.0.0 Latest version

Codebase Scanner

log-out

Codebase Scanner

Scan codebase for existence scan keyword

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Codebase Scanner

uses: kiliczsh/codebase-scanner@v1.0.0

Learn more about this action in kiliczsh/codebase-scanner

Choose a version

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/codebase-scanner@v1.0.0
        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 }}"