Skip to content

Commit 02fafa8

Browse files
authored
[samsung] Use secret API key (#14404)
Summary: Copy of #14105.
1 parent b669b4f commit 02fafa8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.ci/scripts/setup-samsung-linux-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -ex
1111

1212
download_ai_lite_core() {
1313
API_BASE="https://soc-developer.semiconductor.samsung.com/api/v1/resource/ai-litecore/download"
14-
API_KEY="kn10SoSY3hkC-9Qny5TqD2mnqVrlupv3krnjLeBt5cY"
14+
API_KEY=$SAMSUNG_AI_LITECORE_KEY
1515

1616
VERSION="0.5"
1717
OS_NAME="Ubuntu 22.04"

.github/workflows/pull.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,14 @@ jobs:
900900
permissions:
901901
id-token: write
902902
contents: read
903+
secrets: inherit
903904
with:
904905
runner: linux.2xlarge
905906
docker-image: ci-image:executorch-ubuntu-22.04-clang12-android
906907
submodules: 'recursive'
907908
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
908909
timeout: 90
910+
secrets-env: SAMSUNG_AI_LITECORE_KEY
909911
script: |
910912
set -ex
911913
@@ -917,6 +919,7 @@ jobs:
917919
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "cmake"
918920
919921
# Setup Samsung SDK (AI Lite Core) and install enn backend
922+
export SAMSUNG_AI_LITECORE_KEY=$SECRET_SAMSUNG_AI_LITECORE_KEY
920923
source .ci/scripts/setup-samsung-linux-deps.sh
921924
922925
# Test models serially

0 commit comments

Comments
 (0)