【问题标题】:What is "contents: write" permission in GitHub workflow?GitHub 工作流程中的“内容:写入”权限是什么?
【发布时间】:2023-02-02 13:08:14
【问题描述】:

最近我遇到了一个问题 https://github.com/kkohtaka/gh-actions-pr-size/issues/9 可能有一个 solution 为我的工作添加 contents: write 权限:

permissions:
   contents: write
   ...

我试图在https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs 中找到解释,但只找到支持的值,如contents: read|write|none。

GitHub 工作流程中的contents: write 权限是什么?它给了什么?

【问题讨论】:

    标签: github github-actions


    【解决方案1】:

    令牌权限基于 GitHub App 权限模型。

    可以参考overview for the GitHub App contents permission。

    【讨论】:

      猜你喜欢
      • 2020-01-09
      • 1970-01-01
      • 1970-01-01
      • 2019-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-01
      • 2020-01-04
      相关资源
      最近更新 更多