Skip to content

chore: disable unauthorized file change check due to known vulnerabilities #1622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 48 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,51 +70,53 @@ jobs:
name: ${{ env.CODECOV_UNIQUE_NAME }}
verbose: true
fail_ci_if_error: true

check-unauthorized-file-changes:
name: Check Unauthorized File Changes
if: ${{github.actor != 'dependabot[bot]'}} && ${{github.event_name == 'pull_request'}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

# Turning off the check for unauthorized files changes due to some vulnerabilities in the action

# check-unauthorized-file-changes:
# name: Check Unauthorized File Changes
# if: ${{github.actor != 'dependabot[bot]'}} && ${{github.event_name == 'pull_request'}}
# 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@v46
with:
files: |
.github/**
.husky/**
.env.example
package.json
tsconfig.json
next.config.js
next-sitemap.config.js
next-env.d.ts
tailwind.config.js
postcss.config.js
yarn.lock
Dockerfile
CODEOWNERS
LICENSE
.gitignore
.gitmodules
.gitattributes
.eslintrc.js
.eslintignore
.zshrc
.prettierrc
.prettierignore
.dockerignore
makefile
# - name: Get Changed Unauthorized files
# id: changed-unauth-files
# uses: tj-actions/changed-files@v46
# with:
# files: |
# .github/**
# .husky/**
# .env.example
# package.json
# tsconfig.json
# next.config.js
# next-sitemap.config.js
# next-env.d.ts
# tailwind.config.js
# postcss.config.js
# yarn.lock
# Dockerfile
# CODEOWNERS
# LICENSE
# .gitignore
# .gitmodules
# .gitattributes
# .eslintrc.js
# .eslintignore
# .zshrc
# .prettierrc
# .prettierignore
# .dockerignore
# makefile

- 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"
done
exit 1
# - 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"
# done
# exit 1