Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

take care for action references that are submodules

未关闭
#39 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
git, github-actions, python
领域
devops, security

调研方向

使用引用的 ci.yml 示例跟踪相对 action 路径的解析,然后检查当路径指向 Git 子模块时 action.yml 的下载方式。当托管在子模块中的本地 action 能够被识别,并且其 action.yml 文件能够在不发生所报告的下载失败的情况下完成解析时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

downloader good first issue Low Priority

When we try to resolve the actions, and when there are relative paths, we try to resolve these paths into absolute paths and download the referenced action.

Sometimes the resolved absolute path is referencing a submodule. We aren't aware of that, and try to download the file which means nothing.

A real-world example:
This is part of ci.yml file for apache/airflow repository:

- name: Configure AWS credentials
  uses: ./.github/actions/configure-aws-credentials
  if: >
    github.ref == 'refs/heads/main' && github.repository == 'apache/airflow' &&
    github.event_name == 'push'

the configure-aws-credentials is actually a submodule, so we are unable to find the action.yml file beneath it (even though he exists in the submodule)

This is how raven logs looks like:

[+] Found 6 workflows for apache/airflow
[+] Fetching build-images.yml
[+] Fetching ci.yml
[-] Couldn't download the action.yml for the dependent action referenced by './.github/actions/configure-aws-credentials' (Maybe runs a local action that was checked out previously? Maybe the action is executed through a Dockerfile?)
[-] Couldn't download the action.yml for the dependent action referenced by './.github/actions/github-push-action' (Maybe runs a local action that was checked out previously? Maybe the action is executed through a Dockerfile?)
主要语言
Python
星标
747
派生
46
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CycodeLabs/raven 的其他 Issue

查看 CycodeLabs/raven 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。