Add token permissions for CIs to fix issues reported by scorecard (#3867)

This commit is contained in:
TianlongLiang
2024-10-22 09:13:55 +08:00
committed by GitHub
parent 3ad95303d6
commit b34b2c8e26
20 changed files with 164 additions and 4 deletions

View File

@ -27,6 +27,9 @@ on:
description: "A cached key of LLVM libraries"
value: ${{ jobs.build_llvm_libraries.outputs.key}}
permissions:
contents: read
jobs:
build_llvm_libraries:
runs-on: ${{ inputs.os }}
@ -36,6 +39,9 @@ jobs:
image: ${{ inputs.container_image }}
outputs:
key: ${{ steps.create_lib_cache_key.outputs.key}}
permissions:
contents: read
actions: write # for uploading cached artifact
steps:
- name: checkout