Skip to content

deploywhisper/analyze-action

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

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeployWhisper Analyze Action

Official GitHub Action for sending pull-request infrastructure changes to a DeployWhisper API endpoint.

This directory is intentionally shaped like the future root of a dedicated public Marketplace repository:

  • root action.yml
  • self-contained Python stdlib runtime
  • no .github/workflows/ directory

Usage

name: DeployWhisper

on:
  pull_request:
    types: [opened, synchronize, reopened]

permissions:
  contents: read
  pull-requests: write

jobs:
  deploywhisper:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: deploywhisper/analyze-action@v1
        with:
          api-url: ${{ secrets.DEPLOYWHISPER_API_URL }}

Optional inputs:

  • api-token
  • changed-files
  • working-directory

Outputs:

  • created
  • changed-file-count
  • submitted-artifact-count
  • accepted-artifact-count
  • report-id
  • report-link
  • severity
  • recommendation
  • share-summary-json
  • share-summary-markdown
  • comment-id
  • comment-url
  • comment-updated
  • skipped-files

Behavior

  • detects changed files from the pull-request diff
  • filters to supported DeployWhisper artifacts locally before upload
  • submits those artifacts to POST /api/v1/analyses
  • posts a single markdown PR comment and updates that same comment on re-runs
  • compares the latest report with the previous PR scan so the updated comment shows score and severity changes
  • exits 0 when analysis succeeds, regardless of risk verdict
  • uses only Python standard library modules inside the action runtime

Publish

See PUBLISHING.md for the exact GitHub-side steps to turn this directory into a public Marketplace action repository.

About

Standalone DeployWhisper GitHub Action for PR infrastructure analysis

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages