diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts
index 74898bb..9935df7 100644
--- a/__tests__/context.test.ts
+++ b/__tests__/context.test.ts
@@ -1,4 +1,5 @@
 import {beforeEach, describe, expect, jest, test} from '@jest/globals';
+import crypto from 'crypto';
 import * as fs from 'fs';
 import * as path from 'path';
 import {Buildx} from '@docker/actions-toolkit/lib/buildx/buildx';
diff --git a/src/context.ts b/src/context.ts
index 263cfb2..8d44e12 100644
--- a/src/context.ts
+++ b/src/context.ts
@@ -1,3 +1,4 @@
+import crypto from 'crypto';
 import * as core from '@actions/core';
 
 import {Docker} from '@docker/actions-toolkit/lib/docker/docker';
diff --git a/src/main.ts b/src/main.ts
index ffc9a71..eb1a8af 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,3 +1,4 @@
+import crypto from 'crypto';
 import * as fs from 'fs';
 import * as yaml from 'js-yaml';
 import * as core from '@actions/core';