mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 12:50:45 +00:00
Replace read-all/write-all with minimum required permission scopes across all GitHub Actions workflows to follow the principle of least privilege (SonarCloud rule githubactions:S8234).
30 lines
595 B
YAML
30 lines
595 B
YAML
---
|
|
# $schema: "https://json.schemastore.org/github-workflow.json"
|
|
name: Semantic PR
|
|
|
|
# yamllint disable-line
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
semantic-pr:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
validateSingleCommit: true
|