Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix for GH #2006, cleanup EKS upload permissions so deploy login works OK (#2113)

Eric Bariauxb72fb82c3718
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index fd8876d4d..d6f80bb95 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -92,7 +92,7 @@ on:
permissions:
id-token: write
- contents: write
+ contents: read
security-events: write
concurrency:
@@ -841,6 +841,10 @@ jobs:
failure = False
+ # Clean-up AWS credentials related variable that might have been set by Configure AWS Credentials for ECR upload
+ del os.environ['$AWS_ACCESS_KEY_ID']
+ del os.environ['$AWS_SECRET_ACCESS_KEY']
+
# Determine deploy script to use
deployScript = ".ci_cd/deploy.sh"