Skip to content

Commit 0c010be

Browse files
committed
fix: access token
1 parent 64c7681 commit 0c010be

6 files changed

Lines changed: 3 additions & 31 deletions

File tree

.worktrees/standalone

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 8946903746e86bf78cfa05cc821c3346ba5def2b

__tests__/main.test.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -230,26 +230,6 @@ describe('action', () => {
230230
);
231231
});
232232

233-
it('requires access token', async () => {
234-
getInputMock.mockImplementation((name) => {
235-
switch (name) {
236-
case 'command':
237-
return 'status';
238-
case 'version':
239-
return 'latest';
240-
case 'access-token':
241-
return '';
242-
default:
243-
return '';
244-
}
245-
});
246-
247-
await main.run();
248-
expect(runMock).toHaveReturned();
249-
250-
expect(setFailedMock).toHaveBeenCalledWith('access-token is required');
251-
});
252-
253233
it('handles installation failure with retry', async () => {
254234
findMock.mockReturnValue('');
255235

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ export async function run(): Promise<void> {
250250
const accessToken = core.getInput('access-token');
251251
const autoConnect = core.getInput('auto-connect');
252252

253-
// Validate inputs
254-
if (!accessToken) {
255-
throw new Error('access-token is required');
256-
}
257-
258253
// Validate version format
259254
validateVersion(version);
260255

0 commit comments

Comments
 (0)