Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"dependencies": {
"@actions/core": "^3.0.0",
"@actions/github": "^9.0.0",
"js-base64": "^3.7.8",
"markdown-table": "^3.0.4",
"semver": "^7.7.4"
},
Expand Down
4 changes: 2 additions & 2 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { debug, getBooleanInput, getInput, setFailed, warning } from '@actions/c
import { context, getOctokit } from '@actions/github';
import { type operations } from '@octokit/openapi-types';
import { type Api } from '@octokit/plugin-rest-endpoint-methods';
import { Base64 } from 'js-base64';
import { Buffer } from 'node:buffer';
import { existsSync, readFileSync } from 'node:fs';
import { resolve } from 'node:path';

Expand Down Expand Up @@ -105,7 +105,7 @@ async function run() {
throw Error('💥 Cannot fetch repository base lock file, aborting!');
}

const baseLock = parseLock(Base64.decode(baseLockData.data.content));
const baseLock = parseLock(Buffer.from(baseLockData.data.content, 'base64').toString('utf8'));
const lockChanges = diffLocks(baseLock, updatedLock);
const lockChangesCount = Object.keys(lockChanges).length;

Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,6 @@ get-tsconfig@^4.7.5:
dependencies:
resolve-pkg-maps "^1.0.0"

js-base64@^3.7.8:
version "3.7.8"
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.8.tgz#af44496bc09fa178ed9c4adf67eb2b46f5c6d2a4"
integrity sha512-hNngCeKxIUQiEUN3GPJOkz4wF/YvdUdbNL9hsBcMQTkKzboD7T/q3OYOuuPZLUE6dBxSGpwhk5mwuDud7JVAow==

js-yaml@^3.10.0:
version "3.14.2"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.2.tgz#77485ce1dd7f33c061fd1b16ecea23b55fcb04b0"
Expand Down