Skip to content

Commit fbfd2ab

Browse files
author
Dan Skinner
committed
Merge branch 'next' into integration/typescript
2 parents 3eb6a75 + 3a41311 commit fbfd2ab

45 files changed

Lines changed: 509 additions & 799 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "bundler"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/codeql.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# supported CodeQL languages.
1111
#
1212
name: "CodeQL"
13+
permissions: read-all
1314

1415
on:
1516
push:
@@ -42,11 +43,11 @@ jobs:
4243

4344
steps:
4445
- name: Checkout repository
45-
uses: actions/checkout@v3
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4647

4748
# Initializes the CodeQL tools for scanning.
4849
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@v2
50+
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
5051
with:
5152
languages: ${{ matrix.language }}
5253
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +61,7 @@ jobs:
6061
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
6162
# If this step fails, then you should remove it and run the build manually (see below)
6263
- name: Autobuild
63-
uses: github/codeql-action/autobuild@v2
64+
uses: github/codeql-action/autobuild@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
6465

6566
# ℹ️ Command-line programs to run using the OS shell.
6667
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +74,6 @@ jobs:
7374
# ./location_of_script_within_repo/buildscript.sh
7475

7576
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v2
77+
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
7778
with:
7879
category: "/language:${{matrix.language}}"

.github/workflows/pr-diff.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
name: "PR diff bot"
22
on: [pull_request]
3+
permissions: read-all
34

45
jobs:
56
build:
67
name: PR diff bot
78
runs-on: ubuntu-latest
89
steps:
910
- name: Setup node
10-
uses: actions/setup-node@v1
11+
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
1112
with:
1213
node-version: 18.x
1314

1415
- name: Checkout base branch
15-
uses: actions/checkout@v1
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1617
with:
1718
ref: ${{ github.base_ref }}
1819

@@ -27,7 +28,7 @@ jobs:
2728
cat packages/browser/dist/bugsnag.min.js | gzip | wc -c > .diff/size-before-gzipped
2829
2930
- name: Checkout PR branch
30-
uses: actions/checkout@v1
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3132
with:
3233
clean: false
3334

@@ -41,6 +42,6 @@ jobs:
4142
cat packages/browser/dist/bugsnag.min.js | gzip | wc -c > .diff/size-after-gzipped
4243
4344
- name: Run danger
44-
uses: danger/danger-js@9.1.6
45+
uses: danger/danger-js@92d2525fe338bff16ae7d42794d0a835e2d27473 # 12.3.3
4546
env:
4647
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scorecard.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: OpenSSF Scorecard
6+
on:
7+
# For Branch-Protection check. Only the default branch is supported. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9+
branch_protection_rule:
10+
# To guarantee Maintained check is occasionally updated. See
11+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12+
schedule:
13+
- cron: '0 0 * * 0'
14+
push:
15+
branches: [ "next" ]
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
analysis:
22+
name: Scorecard analysis
23+
runs-on: ubuntu-latest
24+
permissions:
25+
# Needed to upload the results to code-scanning dashboard.
26+
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write
29+
# Uncomment the permissions below if installing in a private repository.
30+
# contents: read
31+
# actions: read
32+
33+
steps:
34+
- name: "Checkout code"
35+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
with:
37+
persist-credentials: false
38+
39+
- name: "Run analysis"
40+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
41+
with:
42+
results_file: results.sarif
43+
results_format: sarif
44+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45+
# - you want to enable the Branch-Protection check on a *public* repository, or
46+
# - you are installing Scorecard on a *private* repository
47+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
48+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
49+
50+
# Public repositories:
51+
# - Publish results to OpenSSF REST API for easy access by consumers
52+
# - Allows the repository to include the Scorecard badge.
53+
# - See https://github.com/ossf/scorecard-action#publishing-results.
54+
# For private repositories:
55+
# - `publish_results` will always be set to `false`, regardless
56+
# of the value entered here.
57+
publish_results: true
58+
59+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60+
# format to the repository Actions tab.
61+
- name: "Upload artifact"
62+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
63+
with:
64+
name: SARIF file
65+
path: results.sarif
66+
retention-days: 5
67+
68+
# Upload the results to GitHub's code scanning dashboard (optional).
69+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
70+
- name: "Upload to code-scanning"
71+
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
72+
with:
73+
sarif_file: results.sarif

.github/workflows/signing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
echo "${{ secrets.PLATFORMS_GPG_KEY_BASE64 }}" | base64 --decode | gpg --batch --import
2525
- name: Sign assets
26-
uses: bugsnag/platforms-release-signer@main
26+
uses: bugsnag/platforms-release-signer@4d88944b11e503624f8a511cf6d0fa2901822b60 # v1.0.0
2727
with:
2828
github_token: ${{ secrets.PLATFORMS_SIGNING_GITHUB_TOKEN }}
2929
full_repository: ${{ github.repository }}

.github/workflows/test-electron.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: '@bugsnag/electron'
22

33
on: push
4+
permissions: read-all
45

56
jobs:
67
test:
@@ -13,8 +14,8 @@ jobs:
1314
os: [ ubuntu-latest ]
1415

1516
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
1819
with:
1920
node-version: ${{ matrix.node-version }}
2021
- name: (Act) install build tools and dependencies
@@ -29,7 +30,7 @@ jobs:
2930
if: ${{ !env.ACT }}
3031
run: |
3132
echo "::set-output name=dir::$(npm config get cache)"
32-
- uses: actions/cache@v4
33+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
3334
id: npm-cache
3435
if: ${{ !env.ACT }}
3536
with:
@@ -65,7 +66,7 @@ jobs:
6566
START_LOCAL_NPM: 1
6667
VERBOSE: 1
6768
ELECTRON_VERSION: ${{ matrix.electron }}
68-
- uses: actions/upload-artifact@v4
69+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6970
if: failure()
7071
with:
7172
name: cucumber-failures

.github/workflows/update-dependencies.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: update-dependencies
2+
permissions: read-all
23

34
on:
45
repository_dispatch:
@@ -24,7 +25,7 @@ jobs:
2425
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2526
REVIEWER: gingerbenw
2627
steps:
27-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2829
with:
2930
ref: next
3031

@@ -35,7 +36,7 @@ jobs:
3536
- run: git fetch --prune --unshallow
3637

3738
- name: Install ruby
38-
uses: ruby/setup-ruby@v1
39+
uses: ruby/setup-ruby@d781c1b4ed31764801bfae177617bb0446f5ef8d # v1.218.0
3940
with:
4041
ruby-version: 2.7
4142

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
# Bugsnag error monitoring & reporting for JavaScript
1+
<div align="center">
2+
<a href="https://www.bugsnag.com/platforms/javascript">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://assets.smartbear.com/m/3dab7e6cf880aa2b/original/BugSnag-Repository-Header-Dark.svg">
5+
<img alt="SmartBear BugSnag logo" src="https://assets.smartbear.com/m/3945e02cdc983893/original/BugSnag-Repository-Header-Light.svg">
6+
</picture>
7+
</a>
8+
<h1>Error monitoring & reporting for JavaScript</h1>
9+
</div>
10+
11+
[![Documentation](https://img.shields.io/badge/documentation-latest-blue.svg)](https://docs.bugsnag.com/platforms/javascript/)
12+
[![Build status](https://badge.buildkite.com/3d7b170ff1190e95999586fb4e2c67edfbe70484a5c0ecfa70.svg)](https://buildkite.com/bugsnag/bugsnag-js)
213

314
Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React, Vue, Angular, Express, Restify and Koa. Get cross-platform error detection for handled and unhandled errors with real-time error alerts and detailed diagnostic reports.
415

0 commit comments

Comments
 (0)