Define top level Permission for ci.yml workflow

Signed-off-by: Akash Singh <akashsingh2210670@gmail.com>
This commit is contained in:
Akash Singh 2024-06-18 18:59:41 +05:30 committed by RainbowMango
parent 4124ba8513
commit 165ebdf188
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.actor }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read # for actions/checkout to fetch code
jobs:
golangci:
name: lint