fabasoad/nsfw-detection-action

View on GitHub
action.yml

Summary

Maintainability
Test Coverage
---
name: 'NSFW Detection Action'
author: Yevhen Fabizhevskyi
description: 'This GitHub action detects NSFW content in committed files.'
branding:
  icon: alert-octagon
  color: red
inputs:
  github_token:
    description: 'GitHub token'
    required: true
  type:
    description: 'Type of committed files separated by comma.'
    required: false
    default: 'modified,added,renamed'
  provider:
    description: 'Provider identifier.'
    required: true
  api_key:
    description: 'API key that should be used for chosen provider.'
    required: true
  extensions:
    description: 'List of extensions separated by comma.'
    required: false
    default: 'jpeg,jpg,png,gif,webp,tiff,bmp'
  threshold:
    description: 'Action will be failed in case NSFW detection value will be greater or equal to this parameter.'
    required: true
runs:
  using: 'node20'
  main: 'dist/index.js'