# HG changeset patch # User Bram Moolenaar # Date 1664204403 -7200 # Node ID 5b94b8c82687716f9ab4a979e245183ed916f0ee # Parent fa144142b452b0fde456dd3f67b9832370ef0c83 patch 9.0.0593: CI actions have too many permissions Commit: https://github.com/vim/vim/commit/311df6bb0f861154e6a27144c226c805c7554a94 Author: Alex Date: Mon Sep 26 15:52:46 2022 +0100 patch 9.0.0593: CI actions have too many permissions Problem: CI actions have too many permissions. Solution: Restrict permissions to what is required. (closes https://github.com/vim/vim/issues/11223) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true +permissions: + contents: read # to fetch code (actions/checkout) + jobs: linux: runs-on: ubuntu-20.04 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,8 +21,15 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true +permissions: + contents: read # to fetch code (actions/checkout) + jobs: analyze: + permissions: + contents: read # to fetch code (actions/checkout) + security-events: write # (github/codeql-action/autobuild) + name: Analyze runs-on: ubuntu-latest diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -4,6 +4,9 @@ on: - cron: '42 0 * * *' # Run once per day, to avoid Coverity's submission limits workflow_dispatch: +permissions: + contents: read # to fetch code (actions/checkout) + jobs: scan: runs-on: ubuntu-20.04 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 593, +/**/ 592, /**/ 591,