]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : fine-grant permission (#9710)
authorXuan Son Nguyen <redacted>
Fri, 4 Oct 2024 09:47:19 +0000 (11:47 +0200)
committerGitHub <redacted>
Fri, 4 Oct 2024 09:47:19 +0000 (11:47 +0200)
.github/workflows/build.yml
.github/workflows/close-issue.yml
.github/workflows/nix-ci-aarch64.yml
.github/workflows/nix-ci.yml

index c71d422e70f21ca813f0c91ff5443b2263e1509e..423173b97589784da6007a89e64c96125f7f9487 100644 (file)
@@ -19,6 +19,11 @@ concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
+# Fine-grant permission
+# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
+permissions:
+  contents: write # for creating release
+
 env:
   BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
   GGML_NLOOP: 3
index 69c9f4f69e53b7a601b92ac827f794a9aa55b9bf..f63860d14147f7fe75d0903ef55d98aed681c2ff 100644 (file)
@@ -3,6 +3,11 @@ on:
   schedule:
     - cron: "42 0 * * *"
 
+# Fine-grant permission
+# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
+permissions:
+  issues: write
+
 jobs:
   close-issues:
     runs-on: ubuntu-latest
index 4aa4b2379dccf20a00d965fe2d7f076f72c2ddd3..0da6acdf1c81eeea5891f44945b634ef5eb04c17 100644 (file)
@@ -21,6 +21,13 @@ concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
+# Fine-grant permission
+# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
+permissions:
+  # https://github.com/DeterminateSystems/nix-installer-action?tab=readme-ov-file#with-flakehub
+  id-token: write
+  contents: read
+
 jobs:
   nix-build-aarch64:
     runs-on: ubuntu-latest
index 8955f38d020a60309826439a6ac7daefac9da38a..8ecbbe53b4ed17ec49bbbb4a6ebe28bd2833d0b1 100644 (file)
@@ -12,6 +12,13 @@ concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
+# Fine-grant permission
+# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
+permissions:
+  # https://github.com/DeterminateSystems/nix-installer-action?tab=readme-ov-file#with-flakehub
+  id-token: write
+  contents: read
+
 jobs:
   nix-eval:
     strategy: