devops: change flakiness-dashboard auth to be secret-less
This commit is contained in:
parent
b52cd7e4dc
commit
cfaa1f0d88
845
utils/flakiness-dashboard/package-lock.json
generated
845
utils/flakiness-dashboard/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -2,11 +2,9 @@
|
|||
"name": "flakiness-dashboard",
|
||||
"version": "",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"test": "echo \"No tests yet...\""
|
||||
},
|
||||
"author": "",
|
||||
"dependencies": {
|
||||
"@azure/storage-blob": "^12.16.0"
|
||||
"@azure/identity": "^4.1.0",
|
||||
"@azure/storage-blob": "^12.17.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,14 +13,22 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
const { BlobServiceClient } = require("@azure/storage-blob");
|
||||
// @ts-check
|
||||
const { DefaultAzureCredential } = require('@azure/identity');
|
||||
const { BlobServiceClient } = require('@azure/storage-blob');
|
||||
const defaultAzureCredential = new DefaultAzureCredential();
|
||||
const zlib = require('zlib');
|
||||
const util = require('util');
|
||||
|
||||
const gzipAsync = util.promisify(zlib.gzip);
|
||||
const gunzipAsync = util.promisify(zlib.gunzip);
|
||||
|
||||
const blobServiceClient = BlobServiceClient.fromConnectionString(process.env.AzureWebJobsStorage);
|
||||
const AZURE_STORAGE_ACCOUNT = 'folioflakinessdashboard';
|
||||
|
||||
const blobServiceClient = new BlobServiceClient(
|
||||
`https://${AZURE_STORAGE_ACCOUNT}.blob.core.windows.net`,
|
||||
defaultAzureCredential
|
||||
);
|
||||
|
||||
function flattenSpecs(suite, result = [], titlePaths = []) {
|
||||
if (suite.suites) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue