Update zizmor conf

This commit is contained in:
Filipe PINTO 2025-04-24 14:34:54 +02:00 committed by lepapareil
parent 59d419dea3
commit 42aeeeb6ea
No known key found for this signature in database
GPG Key ID: F4F06B068FB00692
1 changed files with 16 additions and 8 deletions

View File

@ -72,14 +72,8 @@ function consume_args(){
fi
}
# main
init_terminal_colors
consume_args "$@"
zizmor --version
error_count=0
# disable excessive-permissions on git jobs for now because all yml permissions have to be rewrited from scratch"
conf="/tmp/conf"
cat <<- "EOF" > "${conf}"
function set_zizmor_conf(){
cat <<- "EOF" > "$1"
rules:
excessive-permissions:
ignore:
@ -91,7 +85,21 @@ cat <<- "EOF" > "${conf}"
- update-actions.yml
- update-branch-version.yml
- update-crates.yml
unpinned-uses:
config:
policies:
"*": ref-pin
EOF
}
# main
init_terminal_colors
consume_args "$@"
zizmor --version
conf="/tmp/conf"
set_zizmor_conf "${conf}"
error_count=0
for file in "${files[@]}" ; do
# disable release.yml for now because output vars have to be rewrited from scratch"
if [[ "${file}" =~ release.yml ]] ; then