Skip to content

Commit ef741ca

Browse files
authored
Merge branch 'main' into parkerbxyz/dependabot-multi-ecosystem-groups
2 parents 20749b7 + 7bd0371 commit ef741ca

29 files changed

Lines changed: 32048 additions & 72295 deletions

.github/workflows/publish-immutable-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
id-token: write
1313
packages: write
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616
- name: Publish Immutable Action
1717
uses: actions/publish-immutable-action@v0.0.4

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: release
33
on:
44
push:
55
branches:
6+
- "*.x"
67
- main
8+
- beta
79

810
permissions:
911
contents: write
@@ -16,14 +18,13 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
# build local version to create token
19-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2022
with:
2123
persist-credentials: false
2224

23-
- uses: actions/setup-node@v4
25+
- uses: actions/setup-node@v6
2426
with:
25-
node-version-file: .node-version
26-
cache: 'npm'
27+
node-version-file: package.json
2728

2829
- run: npm ci
2930
- run: npm run build

.github/workflows/stale.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow warns and then closes issues that have had no activity for a specified amount of time.
2+
# https://github.com/actions/stale
3+
4+
name: Stale
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
# 00:00 UTC on Mondays
10+
- cron: '0 0 * * 1'
11+
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
16+
env:
17+
DAYS_BEFORE_STALE: 180
18+
DAYS_BEFORE_CLOSE: 60
19+
STALE_LABEL: 'stale'
20+
STALE_LABEL_URL: ${{github.server_url}}/${{github.repository}}/labels/stale
21+
22+
jobs:
23+
stale:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/stale@v10
27+
with:
28+
operations-per-run: 100
29+
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
30+
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
31+
stale-issue-label: ${{ env.STALE_LABEL }}
32+
stale-pr-label: ${{ env.STALE_LABEL }}
33+
stale-issue-message: 'This issue has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this issue if it is no longer needed. If this issue is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.'
34+
stale-pr-message: 'This pull request has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this pull request if it is no longer needed. If this pull request is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.'

.github/workflows/test.yml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
- beta
78
pull_request:
9+
merge_group:
810
workflow_dispatch:
911

1012
concurrency:
@@ -16,30 +18,28 @@ permissions:
1618

1719
jobs:
1820
integration:
19-
name: Integration
21+
name: integration
2022
runs-on: ubuntu-latest
2123
steps:
22-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2325

24-
- uses: actions/setup-node@v4
26+
- uses: actions/setup-node@v6
2527
with:
26-
node-version-file: .node-version
27-
cache: 'npm'
28+
node-version-file: package.json
2829

2930
- run: npm ci
3031
- run: npm test
3132

3233
end-to-end:
33-
name: End-to-End
34+
name: end-to-end
3435
runs-on: ubuntu-latest
3536
# do not run from forks, as forks don’t have access to repository secrets
36-
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
37+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
3738
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-node@v4
39+
- uses: actions/checkout@v6
40+
- uses: actions/setup-node@v6
4041
with:
41-
node-version: 20
42-
cache: "npm"
42+
node-version-file: package.json
4343
- run: npm ci
4444
- run: npm run build
4545
- uses: ./ # Uses the action in the root directory
@@ -54,3 +54,28 @@ jobs:
5454
with:
5555
route: GET /installation/repositories
5656
- run: echo '${{ steps.get-repository.outputs.data }}'
57+
58+
end-to-end-proxy:
59+
name: end-to-end with unreachable proxy
60+
runs-on: ubuntu-latest
61+
# do not run from forks, as forks don’t have access to repository secrets
62+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
63+
steps:
64+
- uses: actions/checkout@v6
65+
- uses: actions/setup-node@v6
66+
with:
67+
node-version-file: package.json
68+
cache: 'npm'
69+
- run: npm ci
70+
- run: npm run build
71+
- uses: ./ # Uses the action in the root directory
72+
continue-on-error: true
73+
id: test
74+
env:
75+
NODE_USE_ENV_PROXY: "1"
76+
https_proxy: http://127.0.0.1:9
77+
with:
78+
app-id: ${{ vars.TEST_APP_ID }}
79+
private-key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
80+
- name: Assert action failed through unreachable proxy
81+
run: test "${{ steps.test.outcome }}" = "failure"

.github/workflows/update-permission-inputs.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,30 @@ concurrency:
1313

1414
permissions:
1515
contents: write
16+
pull-requests: write
1617

1718
jobs:
1819
update-permission-inputs:
1920
runs-on: ubuntu-latest
21+
env:
22+
COMMIT_MESSAGE: 'feat: update permission inputs'
2023
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-node@v4
24+
- uses: actions/checkout@v6
25+
- uses: actions/setup-node@v6
2326
with:
24-
node-version-file: .node-version
25-
cache: 'npm'
27+
node-version-file: package.json
2628
- name: Install dependencies
2729
run: npm ci
2830
- name: Run permission inputs update script
2931
run: node scripts/update-permission-inputs.js
3032
- name: Commit changes
31-
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0
33+
id: auto-commit
34+
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
3235
with:
33-
commit_message: 'feat: update permission inputs'
36+
commit_message: ${{ env.COMMIT_MESSAGE }}
37+
- name: Update PR title
38+
if: github.event_name == 'pull_request' && steps.auto-commit.outputs.changes_detected == 'true'
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: |
42+
gh pr edit ${{ github.event.pull_request.number }} --title "${{ env.COMMIT_MESSAGE }}"

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)