mirror of
https://github.com/linuxserver/github-workflows.git
synced 2026-03-02 00:02:48 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
23 lines
714 B
YAML
23 lines
714 B
YAML
name: Permission check
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
permission_check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Check Permissions
|
|
run: |
|
|
WRONG_PERM=$(find ./ -path "./.git" -prune -o \( -name "run" -o -name "finish" -o -name "check" \) -not -perm -u=x,g=x,o=x -print)
|
|
if [ -n "${WRONG_PERM}" ]; then
|
|
for i in ${WRONG_PERM}; do
|
|
echo "::error file=${i},line=1,title=Missing Executable Bit::This file needs to be set as executable!"
|
|
done
|
|
exit 1
|
|
else
|
|
echo "**** All perms look good ****"
|
|
fi
|