Skip to content

Commit 87694d6

Browse files
committed
DEVOPS-977 default zizmor config to allow MiraGeoscience unpinned actions
1 parent 8d35362 commit 87694d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/actions/setup-zizmor-config/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ runs:
66
- name: Ensure default zizmor.yml
77
shell: bash
88
run: |
9-
if [ ! -f zizmor.yml ]; then
9+
if [[ ! -f zizmor.yml || $(wc -l < zizmor.yml) -eq 1 ]]; then
1010
echo "Creating a custom zizmor.yml configuration file for CI..."
1111
cat > zizmor.yml << 'EOF'
1212
rules:
1313
dependabot-cooldown:
1414
disable: true
15+
unpinned-uses:
16+
config:
17+
policies:
18+
MiraGeoscience/*: any
1519
EOF
1620
else
1721
echo "⊘ Found existing zizmor.yml configuration file"

0 commit comments

Comments
 (0)