Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

256 B
Raw Blame
import { execSync } from 'node:child_process';

export const getGitHash = () => {
    try {
        return execSync('git rev-parse HEAD').toString().trim();
    } catch (e) {
        console.error('Failed to get git hash', e);

        return '';
    }
};