diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-03-21 08:40:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 08:40:03 +0000 |
commit | 5646fe3c6db4ec1caa5a401bd194bb3319ab3025 (patch) | |
tree | 3ec3e008ad1b9adcdcdd65c2869163974c07c829 | |
parent | 0e882f0d2bdc054aede0e552daa4fa384d24a873 (diff) | |
parent | 92a720cbacbdbbdf4be68eb1d0c2f2b83b226406 (diff) | |
download | nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.tar nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.tar.gz nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.tar.bz2 nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.tar.lz nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.tar.xz nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.tar.zst nixpkgs-5646fe3c6db4ec1caa5a401bd194bb3319ab3025.zip |
Merge pull request #164880 from Mic92/github-tokens
ci: add warning to actions with writeable GITHUB_TOKEN
-rw-r--r-- | .github/workflows/backport.yml | 6 | ||||
-rw-r--r-- | .github/workflows/labels.yml | 5 | ||||
-rw-r--r-- | .github/workflows/pending-set.yml | 5 |
3 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index bcb164a04ee..4ee5adfaac1 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -2,6 +2,12 @@ name: Backport on: pull_request_target: types: [closed, labeled] + +# WARNING: +# When extending this action, be aware that $GITHUB_TOKEN allows write access to +# the GitHub repository. This means that it should not evaluate user input in a +# way that allows code injection. + jobs: backport: name: Backport Pull Request diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index c464f8bf58a..5f949ddc56b 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -4,6 +4,11 @@ on: pull_request_target: types: [edited, opened, synchronize, reopened] +# WARNING: +# When extending this action, be aware that $GITHUB_TOKEN allows some write +# access to the GitHub API. This means that it should not evaluate user input in +# a way that allows code injection. + permissions: contents: read pull-requests: write diff --git a/.github/workflows/pending-set.yml b/.github/workflows/pending-set.yml index 944d1deefb9..b15e4847e67 100644 --- a/.github/workflows/pending-set.yml +++ b/.github/workflows/pending-set.yml @@ -3,6 +3,11 @@ name: "set pending status" on: pull_request_target: +# WARNING: +# When extending this action, be aware that $GITHUB_TOKEN allows write access to +# the GitHub repository. This means that it should not evaluate user input in a +# way that allows code injection. + jobs: action: runs-on: ubuntu-latest |