mirror of
https://github.com/Keeper-Security/harness-integration.git
synced 2026-06-04 10:14:56 +08:00
Fix workflow and prepare for Docker Hub publishing (#4)
* fix: commit package-lock.json for reproducible Docker builds - Remove package-lock.json from .gitignore (was incorrectly ignored) - Add package-lock.json with pinned dependency versions - Use npm ci for faster, deterministic installs in CI - Re-enable npm cache for build performance - Ensures exact dependency versions in Docker images * fix: remove unused catch parameter * docs: update Docker image name to official keeper/harness-plugin - Replace placeholder dhborse/keeper-harness-plugin with keeper/harness-plugin:latest - Use official Keeper organization image name
This commit is contained in:
@@ -37,6 +37,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
node_modules/
|
||||
package-lock.json
|
||||
@@ -59,7 +59,7 @@ pipeline:
|
||||
name: Fetch_Keeper_Secrets
|
||||
identifier: Fetch_Keeper_Secrets
|
||||
spec:
|
||||
image: dhborse/keeper-harness-plugin
|
||||
image: keeper/harness-plugin:latest
|
||||
settings:
|
||||
secrets: |
|
||||
RECORD_UID/field/password > PASSWORD
|
||||
|
||||
Generated
+4507
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -44,7 +44,7 @@ const processToken = (rawToken) => {
|
||||
if (!token.startsWith('US:') && !token.startsWith('{')) {
|
||||
try {
|
||||
token = Buffer.from(token, 'base64').toString('utf-8').trim();
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// Not base64, use as-is
|
||||
core.warning('Base64 decode failed, using raw value');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user