From 8280840fb827b57197c4a02d64a30c49391e2cc5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 03:55:50 +0000 Subject: [PATCH 1/2] github-actions(deps): bump github/accessibility-alt-text-bot Bumps [github/accessibility-alt-text-bot](https://github.com/github/accessibility-alt-text-bot) from 1.2.0 to 1.3.0. - [Release notes](https://github.com/github/accessibility-alt-text-bot/releases) - [Commits](https://github.com/github/accessibility-alt-text-bot/compare/v1.2.0...v1.3.0) --- updated-dependencies: - dependency-name: github/accessibility-alt-text-bot dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/a11y_alt_text_bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/a11y_alt_text_bot.yml b/.github/workflows/a11y_alt_text_bot.yml index e93bc01..fe8acce 100644 --- a/.github/workflows/a11y_alt_text_bot.yml +++ b/.github/workflows/a11y_alt_text_bot.yml @@ -23,5 +23,5 @@ jobs: if: ${{ github.event.issue || github.event.pull_request || github.event.discussion }} steps: - name: Get action 'github/accessibility-alt-text-bot' - uses: github/accessibility-alt-text-bot@v1.2.0 # Set to latest + uses: github/accessibility-alt-text-bot@v1.3.0 # Set to latest From 2fb7bece4267d3c83d796ccfd4dd39569c1ff733 Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Wed, 22 Nov 2023 17:13:06 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Skip=20empty=20url=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/run.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands/run.ts b/src/commands/run.ts index 78b0c52..feb73cd 100644 --- a/src/commands/run.ts +++ b/src/commands/run.ts @@ -56,6 +56,7 @@ export default async function (options: CommandOption): Promise { const urls: string[] = fs .readFileSync(filePath /*, { encoding: config.encoding }*/) .toString() + .trim() .replace(/\r?\n/g, ',') .split(','); @@ -71,7 +72,12 @@ export default async function (options: CommandOption): Promise { let outputText: string = raw ? '' : REPORT_HEADER.join(); const rawAxeResults: RawAxeResults = {}; for (let i = 0; i < urls.length; i++) { - const url: string = urls[i]; + const url: string = urls[i].trim(); + + if (!url) { + continue; + } + const page: puppeteer.Page = await browser.newPage(); await page.setBypassCSP(true); /* Emulate device: left here as a potential option for the future