fix: AWS I AM role validation when field is empty (#7805)

Co-authored-by: sumit-tft <70506234+sumit-tft@users.noreply.github.com>
Co-authored-by: Pablo Lara <larabjj@gmail.com>
This commit is contained in:
Prowler Bot
2025-05-21 12:35:45 +02:00
committed by GitHub
parent 1ad6878575
commit ec7368f1bc
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -4,7 +4,12 @@ All notable changes to the **Prowler UI** are documented in this file.
## [v1.8.0] (Prowler v5.8.0) Not released
### 🐞 Fixes
- Added validation to AWS IAM role. [(#7787)](https://github.com/prowler-cloud/prowler/pull/7787)
---
## [v1.7.0] (Prowler v5.7.0)
### 🚀 Added
+1 -1
View File
@@ -155,7 +155,7 @@ export const addCredentialsRoleFormSchema = (providerType: string) =>
.object({
providerId: z.string(),
providerType: z.string(),
role_arn: z.string().optional(),
role_arn: z.string().nonempty("AWS Role ARN is required"),
external_id: z.string().optional(),
aws_access_key_id: z.string().optional(),
aws_secret_access_key: z.string().optional(),