chore(deps): bump @docusaurus/module-type-aliases from 3.6.3 to 3.7.0 #13
Workflow file for this run
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
############################################################################## | |
############################################################################## | |
# | |
# NOTE! | |
# | |
# Please read the README.md file in this directory that defines what should | |
# be placed in this file | |
# | |
############################################################################## | |
############################################################################## | |
name: Checking workflow files | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
Check-Sensitive-Files: | |
if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'ignore-sensitive-files-pr') }} | |
name: Checks if sensitive files have been changed without authorization | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get Changed Unauthorized files | |
id: changed-unauth-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
.github/** | |
CNAME | |
static/CNAME | |
package.json | |
sidebar*.js | |
docusaurus.config.js | |
babel.config.js | |
tsconfig.json | |
.gitignore | |
.coderabbit.yaml | |
CODEOWNERS | |
LICENSE | |
*.md | |
- name: List all changed unauthorized files | |
if: steps.changed-unauth-files.outputs.any_changed == 'true' || steps.changed-unauth-files.outputs.any_deleted == 'true' | |
env: | |
CHANGED_UNAUTH_FILES: ${{ steps.changed-unauth-files.outputs.all_changed_files }} | |
run: | | |
for file in ${CHANGED_UNAUTH_FILES}; do | |
echo "$file is unauthorized to change/delete" | |
echo "To override this, apply the 'ignore-sensitive-files-pr' label" | |
done | |
exit 1 |