devops: change flakiness-dashboard auth to be secret-less

This commit is contained in:
Max Schmitt 2024-04-23 23:10:06 +02:00
parent b52cd7e4dc
commit cfaa1f0d88
3 changed files with 826 additions and 37 deletions

File diff suppressed because it is too large Load diff

View file

@ -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"
}
}

View file

@ -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) {