Skip to content

Commit

Permalink
Merge pull request #1422 from opentofu/add-prefix-check-for-keys
Browse files Browse the repository at this point in the history
add prefix check for key names
  • Loading branch information
ollevche authored Jan 3, 2025
2 parents 2864b26 + c0c6fcc commit 5b8c7a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/submit-provider-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ if [[ -n "${providername}" ]]; then
gh issue comment "${NUMBER}" -b "Failed validation: Invalid provider name: '${providername}'"
exit 1
fi

if [[ "${providername}" =~ ^terraform-provider-.*$ ]]; then
gh issue comment "${NUMBER}" -b "Failed validation: It seems like you accidentally added the 'terraform-provider-' prefix: '${providername}'"
exit 1
fi
fi

set +e
Expand Down

0 comments on commit 5b8c7a8

Please sign in to comment.