Skip to content

Commit

Permalink
add prefix check for key names
Browse files Browse the repository at this point in the history
Signed-off-by: ollevche <[email protected]>
  • Loading branch information
ollevche committed Jan 3, 2025
1 parent 5363509 commit 09f61e7
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: Provider name must not contain 'terraform-provider-' prefix: '${providername}'"
exit 1
fi
fi

set +e
Expand Down

0 comments on commit 09f61e7

Please sign in to comment.