スキル一覧に戻る
tom171296

workflow-security-review

by tom171296

Craft beer company that suits their customers reviews to create new craft beer flavours

1🍴 3📅 2026年1月15日
GitHubで見るManusで実行

SKILL.md


name: Workflow Security Review description: Guide for reviewing GitHub Actions for security vulnerabilities. allowed-tools: mcp_github-mcp_get_ref, mcp_github-mcp_list_tags, mcp_github-mcp_get_repository

Workflow Security Review

This skill analyzes GitHub Actions workflows for security vulnerabilities and misconfigurations that could lead to code injection, privilege escalation, or credential exposure.

Available MCP Tools

ToolPurpose
mcp_github-mcp_get_refRetrieves a Git reference, useful for verifying action SHAs
mcp_github-mcp_list_tagsLists all tags for a given repository, useful for identifying action versions
mcp_github-mcp_get_repositoryFetches repository details, useful for context on workflows

When to use this skill

Use this skill when you need to:

  • Validate the security of your GitHub Actions workflows
  • Review pull requests that modify workflow files
  • Identify potential security risks in your CI/CD pipelines
  • Ensure compliance with security best practices in your automation processes
  • Audit workflows before deploying to production
  • Investigate security incidents involving GitHub Actions

Analyzing GitHub Actions

Step-by-step Analysis Process

  1. Locate Workflow Files

    • Check .github/workflows/ directory for all *.yml and *.yaml files
  2. Review Trigger Events

    • Identify workflows triggered by pull_request_target, workflow_run, or issue_comment
    • These events have elevated privileges and access to secrets
    • Verify that untrusted code is not executed with these triggers
  3. Inspect Action Pinning

    • Check if third-party actions use commit SHAs instead of tags
    • Example: actions/checkout@a12b3c4... ✅ vs actions/checkout@v4 ⚠️
  4. Analyze Script Injection Risks

    • Look for ${{ }} expressions in run: blocks
    • Check for unsafe context variables in scripts
    • Identify untrusted input from: github.event.issue.title, github.event.comment.body, github.event.pull_request.title, github.head_ref
  5. Review Permissions

    • Verify permissions: are set at job or workflow level
    • Ensure least privilege (use contents: read as default)
    • Flag workflows without explicit permissions (inherit all by default)
  6. Check Secret Handling

    • Ensure secrets are not logged or exposed in outputs
    • Verify secrets are not used in pull requests from forks
    • Check for hardcoded credentials or tokens

Additional resources

For detailed vulnerability patterns, secure code examples, best practices, and remediation guidance, see reference.md.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です