foo-software/Lighthouse Check

GitHub Action for running one or multiple Lighthouse audits featuring PR comments, Slack notifications and more!

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
accessTokenLegacy field (use "gitHubAccessToken"): Access token of a user to post PR comments.
apiTokenLegacy field (use "fooApiToken"): The foo.software account API token found in the dashboard.
authorLegacy field (use "gitAuthor"): Used in Slack notifications, linking the authoring user to their GitHub profile. In a GitHub context you could use "github.actor".
awsAccessKeyIdThe AWS accessKeyId for an S3 bucket.
awsBucketThe AWS Bucket for an S3 bucket.
awsRegionThe AWS region for an S3 bucket.
awsSecretAccessKeyThe AWS secretAccessKey for an S3 bucket.
branchLegacy field (use "gitBranch"): Used in Slack notifications. In a GitHub context you could use "github.ref".
commentUrlAn endpoint to post comments to. This is only needed if you want to trigger comments on 'push'. A 'pull_request' trigger does not require this to be set. Typically this will be from GitHub's API. Example: https://api.github.com/repos/:owner/:repo/commits/:commit_sha/comments.
deviceThe device in which to run Lighthouse (either "desktop" or "mobile")
emulatedFormFactorLegacy field (use "device): The device in which to run Lighthouse (either "desktop" or "mobile")
extraHeadersStringified HTTP Header object key/value pairs to send in requests.
fooApiTokenThe foo.software account API token found in the dashboard.
gitAuthorUsed in Slack notifications, linking the authoring user to their GitHub profile. In a GitHub context you could use 'github.actor'.
gitBranchUsed in Slack notifications. In a GitHub context you could use 'github.ref'.
gitHubAccessTokenAccess token of a user to post PR comments.
localeA locale for Lighthouse reports. Example: ja
maxRetriesThe maximum number of times to retry. Note: This is not supported when running against Foo's API as retry logic is already in place.
outputDirectoryAn absolute directory path to output report. You can do this an an alternative or combined with an S3 upload.
overridesJsonFileA JSON file with config and option fields to override defaults.
prCommentEnabledIf true and gitHubAccessToken is set scores will be posted as comments.
prCommentSaveOldIf true and PR comment options are set, new comments will be posted on every change vs only updating once comment with most recent scores.
shaUsed in Slack notifications. A git sha.
slackWebhookUrlA Slack Incoming Webhook URL to send notifications to.
tagAn optional tag or name (example: "build #2" or "v0.0.2").
throttlingMethodLighthouse setting only used for local audits. See lighthouse-check NPM module comments for details.
throttlingLighthouse setting only used for local audits. See lighthouse-check NPM module comments for details.
timeoutMinutes to timeout for remote runs. If "wait" option is "true" (it is by default), we wait for results. If this timeout is met before results are received an error is thrown.
urlsA comma-separated list of URLs (or page API tokens if running remotely).
urlsJsonAn alternative way of passing URLs to Lighthouse Check to fulfill more advanced cases in which URLs have commas or you need to associate a URL with a Foo page token.
verboseIf "true", print out steps and results to the console.
waitIf "true", waits for all audit results to be returned, otherwise URLs are only enqueued.

no outputs