Skip to content

This pull request adds support for Azure to the CLI, which currently … #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions src/utils/read-directory.ts
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ async function listFiles(directoryOrFilePath: string): Promise<string[]> {
// escape regex special characters that might be in the extension
return ext.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
})
.concat(['.az']) // Assuming '.az' as Azure-specific file extension
.join('|');

const EXT_REGEX = new RegExp(`.*(${EXT_REGEX_PARTIAL})$`, 'g');
2 changes: 2 additions & 0 deletions src/utils/scanner-strategies/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import GCPScanner from './gcp';
import AWSScanner from './aws';
import AzureScanner from './azure';
import { CloudProviders } from '@slauth.io/langchain-wrapper';
import ScannerStrategy from '../../types/scanner-strategy';

@@ -10,6 +11,7 @@ type ScannerStrategiesType = {
const ScannerStrategies: ScannerStrategiesType = {
gcp: new GCPScanner(),
aws: new AWSScanner(),
azure: new AzureScanner(),
};

export default ScannerStrategies;