mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 01:30:10 +08:00
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
13 lines
594 B
JavaScript
13 lines
594 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getUserAgentString = void 0;
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
|
|
const packageJson = require('../../../package.json');
|
|
/**
|
|
* Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
|
|
*/
|
|
function getUserAgentString() {
|
|
return `@actions/artifact-${packageJson.version}`;
|
|
}
|
|
exports.getUserAgentString = getUserAgentString;
|
|
//# sourceMappingURL=user-agent.js.map
|