Skip to content

{CI} Tighten GHA workflows' permission #1607

{CI} Tighten GHA workflows' permission

{CI} Tighten GHA workflows' permission #1607

Workflow file for this run

name: Git Hook Notice
on:
pull_request:
types: [opened]
branches:
- dev
permissions: {}
jobs:
git-hook-notice:
runs-on: ubuntu-latest
permissions:
contents: read
name: Introduce git hook in developer env
steps:
- name: Checkout git hook notice message
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/template/git-hooks-note.md
- name: Show git hook notice
run: |
echo "::group::Git hook notice"
cat .github/template/git-hooks-note.md
echo "::endgroup::"