
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@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
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 1 open source maintainer 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.