vmactions/freebsd-vm
Action declares a main entrypointBasename is uppercase README.md
SHA-256de0d6fa879a714abeda11671e0af44135d73b933924f28c79add715a942e3de5
Evidence
1# Run GitHub CI in {{VM_NAME}} 
2
3Use this action to run your CI in {{VM_NAME}}.
4
5The github workflow only supports Ubuntu, Windows and MacOS. But what if you need to use {{VM_NAME}}?
6
7This action is to support {{VM_NAME}}.
8
9
10Sampl …
1/// <reference types="node" />
2import * as http from 'http';
3import * as ifm from './interfaces';
4import { HttpClientResponse } from './index';
5export declare class BasicCredentialHandler implements ifm.RequestHandler {
6 username: string;
7 password: string;
8 constructor(username: string, password: string);
9 prepareRequest(options: http.RequestOptions): void;
10 canHandleAuthentication(): boolean;
11 handleAuthentication(): Promise<HttpClientResponse>;
12}
13export declare class BearerCredentialHandler implements ifm.RequestHandler {
14 token: string;
15 constructor(token: string);
16 prepareRequest(options: http.RequestOptions): void;
⋯10 lines
1import validate from './validate.js';
2
3function parse(uuid) {
4 if (!validate(uuid)) {
5 throw TypeError('Invalid UUID');
6 }
7
8 var v;
9 var arr = new Uint8Array(16); // Parse ########-....-....-....-............
10
11 arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
12 arr[1] = v >>> 16 & 0xff;
13 arr[2] = v >>> 8 & 0xff;
14 arr[3] = v & 0xff; // Parse ........-####-....-....-............
15
16 arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
17 arr[5] = v & 0xff; // Parse ........-....-####-....-............
18
19 arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
20 arr[7] = v & 0xff; // Parse ........-....-....-####-............
21
22 arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
23 arr[9] = v & 0xff; // Parse ........-....-....-....-############
24 // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
25
26 arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
27 arr[11] = v / 0x100000000 & 0xff;
28 arr[12] = v >>> 24 & 0xff;
29 arr[13] = v >>> 16 & 0xff;
30 arr[14] = v >>> 8 & 0xff;
31 arr[15] = v & 0xff;
32 return arr;
33}
34
35export default parse;
1// Adapted from Chris Veness' SHA1 code at
2// http://www.movable-type.co.uk/scripts/sha1.html
3function f(s, x, y, z) {
4 switch (s) {
5 case 0:
6 return x & y ^ ~x & z;
7
8 case 1:
9 return x ^ y ^ z;
10
11 case 2:
12 return x & y ^ x & z ^ y & z;
13
14 case 3:
⋯8 lines
23function sha1(bytes) {
24 var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
25 var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
26
27 if (typeof bytes === 'string') {
28 var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
29
30 bytes = [];
31
32 for (var i = 0; i < msg.length; ++i) {
33 bytes.push(msg.charCodeAt(i));
34 }
35 } else if (!Array.isArray(bytes)) {
36 // Convert Array-like to Array
37 bytes = …
⋯4 lines
46 var arr = new Uint32Array(16);
47
48 for (var j = 0; j < 16; ++j) {
49 arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
50 }
51
52 M[_i] = arr;
53 }
54
55 M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 3 …
Showing the top 5 files — 2 more files (10 regions) not shown.
No evidence locations were recorded for this file. Raw result