ci: GitHub workflows security hardening (#6743)

This commit is contained in:
Alex 2022-09-28 05:36:47 +03:00 committed by GitHub
parent 3cc8e024e6
commit 05c7b0d180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,10 @@ on:
pull_request:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
unit-test:
runs-on: ubuntu-latest

View File

@ -5,8 +5,12 @@ on:
name: Create Release
permissions: {}
jobs:
build:
permissions:
contents: write # to create release (yyx990803/release-tag)
name: Create Release
runs-on: ubuntu-latest
steps: