Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@estruyf/github-actions-reporter
Advanced tools
This action reports test results from Playwright to GitHub summaries.
Install from npm:
npm install @estruyf/github-actions-reporter
You can configure the reporter by adding it to the playwright.config.js
file:
import { defineConfig } from '@playwright/test';
export default defineConfig({
reporter: [
['list'],
['@estruyf/github-actions-reporter']
],
});
More information on how to use reporters can be found in the Playwright documentation.
The reporter supports the following configuration options:
Option | Description | Default |
---|---|---|
title | Title of the report. Use an empty string ("" ) to remove the heading. | Test results |
useDetails | Use details in summary which creates expandable content | false |
showAnnotations | Show annotations from tests | true |
showTags | Show tags from tests | true |
showError | Show error message in summary | false |
includeResults | Define which types of test results should be shown in the summary | ['pass', 'skipped', 'fail', 'flaky'] |
quiet | Do not show any output in the console | false |
azureStorageUrl | URL to the Azure Storage account where the screenshots are stored (optional) | "" |
azureStorageSAS | Shared Access Signature (SAS) token to access the Azure Storage account (optional) | "" |
To use these option, you can update the reporter configuration:
import { defineConfig } from '@playwright/test';
import type { GitHubActionOptions } from '@estruyf/github-actions-reporter';
export default defineConfig({
reporter: [
['@estruyf/github-actions-reporter', <GitHubActionOptions>{
title: 'My custom title',
useDetails: true,
showError: true
}]
],
});
If you want to show attachments like when you use pixel matching, you need to provide the configuration for the blob service where the images will be stored.
[!NOTE] GitHub does not have an API to link images to the summary. Therefore, you need to store the images in a blob storage service and provide the URL to the images.
[!IMPORTANT] To show the attachments, you need to make sure to enable
showError
as well.
If you are using Azure Blob Storage, you need to provide the azureStorageUrl
and azureStorageSAS
configuration options.
Follow the next steps to get the URL and SAS token:
azureStorageSAS
valueazureStorageUrl
value. Example: https://<name>.blob.core.windows.net/<container-name>
.playwright.config.js
file with the following configuration:import { defineConfig } from '@playwright/test';
export default defineConfig({
reporter: [
['@estruyf/github-actions-reporter', {
showError: true,
azureStorageUrl: 'https://<name>.blob.core.windows.net/<container-name>',
azureStorageSAS: '<your-sas-token>'
}]
],
});
FAQs
GitHub Actions reporter for Playwright
The npm package @estruyf/github-actions-reporter receives a total of 46,199 weekly downloads. As such, @estruyf/github-actions-reporter popularity was classified as popular.
We found that @estruyf/github-actions-reporter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.