We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3ff0e commit c099d52Copy full SHA for c099d52
.github/workflows/aquasec_repository_scan.yml
@@ -35,15 +35,13 @@ jobs:
35
AUTH_ENDPOINT="https://eu-1.api.cloudsploit.com/v2/tokens"
36
TIMESTAMP=$(date -u +%s)
37
POST_BODY='{
38
- "group_id": 1155,
39
- "allowed_endpoints": ["GET", "POST"],
40
- "validity": 240,
41
- "csp_roles": ["developer", "devops"]
+ "group_id": 1228,
+ "allowed_endpoints": ["GET"],
+ "validity": 240
42
}'
43
STRING_TO_SIGN="${TIMESTAMP}${METHOD}/v2/tokens${POST_BODY}"
44
SIGNATURE=$(echo -n "$STRING_TO_SIGN" | openssl dgst -sha256 -hmac "$AQUA_SECRET" -hex | sed 's/.*= //g')
45
46
-
47
AUTH_RESPONSE=$(curl -s -X "$METHOD" "$AUTH_ENDPOINT" \
48
-H "Content-Type: application/json" \
49
-H "X-API-Key: $AQUA_KEY" \
0 commit comments