我正在尝试使用以下命令将 JDK 17 安装到 macOS BigSur (11.5.2)brew install openjdk@17
> brew install openjdk@17
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 3 formulae.
openjdk is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/manifests/17.0.1_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/blobs/sha256:75ee17c1331022fa8bf1e63f00fe903f23fe31d3a09021117d46b5f6ed1e26e1
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:75ee17c1331022fa8bf1e63f00fe903f23fe31d3a09021117d46b5f6ed1e26e1?se=2021-12-09T20%3A25%3A00Z&sig=NnB%2FO%2BGQF5ec6iqdKA4w29
######################################################################## 100.0%
==> Pouring openjdk--17.0.1_1.big_sur.bottle.tar.gz
==> Caveats
For the system Java wrappers to find this JDK, symlink it with
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
openjdk is …Run Code Online (Sandbox Code Playgroud) 最近我遇到了一个问题https://github.com/kkohtaka/gh-actions-pr-size/issues/9,它有一个可能的解决方案contents: write,即为我的工作添加权限:
permissions:
contents: write
...
Run Code Online (Sandbox Code Playgroud)
我试图在https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs中找到它的解释,但发现只支持像contents: read|write|none.
contents: writeGitHub 工作流程中的权限是什么?它能带来什么?