add security-events permissions to allow trivy sarif uploads #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# SPDX-FileCopyrightText: 2021-2025 Jens A. Koch. | |
# SPDX-License-Identifier: MIT | |
# | |
# This file is part of https://github.com/jakoch/cpp-devbox | |
# | |
name: "Check Spelling" | |
on: | |
# This workflow runs on pushing to the default branch. | |
push: | |
# You can manually run this workflow. | |
workflow_dispatch: | |
jobs: | |
# --------------------------------------------------------------------------------------- | |
check-spelling: | |
# --------------------------------------------------------------------------------------- | |
name: "Spell Checker" | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: 🤘 Checkout Code | |
uses: actions/checkout@v4 # https://github.com/actions/checkout | |
- name: 🔽 Install Dependencies | |
run: sudo npm install -g cspell | |
- name: 🙏 Check Spelling using cspell | |
run: | | |
export CSPELL_OUTPUT=$(sudo cspell lint --no-summary --no-progress .) | |
if [ -n "$CSPELL_OUTPUT" ]; then echo "$CSPELL_OUTPUT" && exit 1; fi; |