Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
action-octoscan — 📦 :octocat: 一个对您的 GitHub Actions 执行安全扫描的 GitHub Action。 | Kitploit
工具/GitHubGitHub/synacktiv/action-octoscan
漏洞扫描器静态代码分析 (SAST)代码分析DevSecOps错误配置
GitHubsynacktiv/action-octoscan

action-octoscan

📦 :octocat: 一个对您的 GitHub Actions 执行安全扫描的 GitHub Action。

查看仓库
26101年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
网站
分享
📦 :octocat:

action octoscan

一个对您的 GitHub Actions 执行安全扫描的 GitHub Action。

此 Action 基于 octoscan


  • 🤸 用法
  • 自定义
    • 输入
    • 输出
    • 权限

🤸 用法

以下是使用此 Action 的基本示例。该示例同时适用于 push 和 pull_request 事件。

root@kitploit:~
---
name: Octoscan

on:
  workflow_dispatch:
  pull_request:
    paths:
      - '.github/workflows/*'
  push:
    paths:
      - '.github/workflows/*'

permissions:
  security-events: write
  actions: read
  contents: read

jobs:
  octoscan:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - id: octoscan
        name: Run octoscan
        uses: synacktiv/action-octoscan@v1

      - name: Upload SARIF file to GitHub
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: "${{steps.octoscan.outputs.sarif_output}}"
          category: octoscan

如果您对目标仓库具有写入权限,可以在代码安全选项卡中查看安全结果: 代码安全

或直接在拉取请求中查看: 代码安全

自定义

输入

输入基于 octoscan 的选项,您可以在此处找到它们。

以下均作为 step.with 键,为可选项:

💡 不能同时使用 enable_rules 和 disable_rules。

输出

以下输出可通过此 Action 的 ${{ steps.<step-id>.outputs }} 访问。

名称类型说明
sarif_outputString包含 sarif 输出的文件名。

权限

此 Action 需要 GitHub 集成令牌具有以下权限:

root@kitploit:~
permissions:
  security-events: write
  actions: read
  contents: read

security-events 用于将 octoscan 的输出推送到 GitHub 代码扫描。

下载工具
名称类型说明
workdirString相对于根目录的工作目录。
filter_triggersString使用特定触发器扫描工作流(逗号分隔列表:"push,pull_request_target" 或预配置:external/allnopr)。默认为 external。
filter_runBoolean仅在 run shell 脚本中搜索表达式注入。默认为 true。
ignoreString与您想要忽略的错误消息匹配的正则表达式。
disable_rulesString禁用特定规则。用 "," 分隔。不能与 enable_rules 同时使用。
enable_rulesString启用特定规则,这会禁用所有其他规则。用 "," 分隔。不能与 disable_rules 同时使用。