Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/actions-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint GitHub Actions

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

permissions: {}

jobs:
zizmor:
runs-on: ubuntu-24.04
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7
17 changes: 11 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,28 @@ on:
types: [published]
workflow_dispatch:

permissions: {}

jobs:
docs:
runs-on: ubuntu-24.04
container: node:24
container: node@sha256:fdddfb3e688158251943d52eba361de991548f6814007acba4917ae6b512d6be # 24
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # v1.3.1

- run: yarn --frozen-lockfile

- run: yarn gendoc

- name: Deploy v${{ steps.package-version.outputs.current-version }}
# This step will copy over generated docs to gh-pages branch, commit and publish
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
Expand All @@ -31,17 +35,18 @@ jobs:
full_commit_message: Deploy ${{ steps.package-version.outputs.current-version }} to GitHub Pages

- name: Checkout gh-pages
uses: actions/checkout@v3
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: gh-pages
persist-credentials: false

# update the index file
- env:
CURRENT_VERSION: ${{ steps.package-version.outputs.current-version }}
run: node insert-new-version.js "${CURRENT_VERSION}"

- name: Commit updated index
uses: github-actions-x/commit@v2.9
uses: github-actions-x/commit@722d56b8968bf00ced78407bbe2ead81062d8baa # v2.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'gh-pages'
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ on:
pull_request:
branches: [ develop ]

permissions: {}

jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .node-version
- run: yarn --ignore-scripts --strict-semver --pure-lockfile
- run: yarn lint
- run: yarn lint
7 changes: 5 additions & 2 deletions .github/workflows/newsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ on:
branches: [ develop ]
workflow_dispatch:

permissions: {}

jobs:
changelog:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with: # Needed for comparison
fetch-depth: 0
- uses: actions/setup-python@v2
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- run: pip install 'towncrier>=23.6.0'
- name: ":newspaper: Newsfile"
run: ./scripts/check-newsfragment
10 changes: 7 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ on:
release:
types: [published]

permissions: {}

jobs:
publish-to-npm:
runs-on: ubuntu-24.04
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .node-version
registry-url: https://registry.npmjs.org/
package-manager-cache: false
- name: Upgrade npm for Trusted Publishing
run: npm i -g npm@latest
- run: yarn --strict-semver --frozen-lockfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/sign-off.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
types: [opened, edited, synchronize]

permissions: {}

jobs:
signoff:
uses: matrix-org/backend-meta/.github/workflows/sign-off.yml@v1.4.1
uses: matrix-org/backend-meta/.github/workflows/sign-off.yml@18beaf3c8e536108bd04d18e6c3dc40ba3931e28 # v2.0.3
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ on:
pull_request:
branches: [ develop ]

permissions: {}

jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
node_version: [24, 26]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "${{ matrix.node_version }}"
- run: yarn --ignore-scripts --pure-lockfile
- run: yarn test
- run: yarn test
4 changes: 3 additions & 1 deletion .github/workflows/triage-incoming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
issues:
types: [opened]

permissions: {}

jobs:
triage:
uses: matrix-org/backend-meta/.github/workflows/triage-incoming.yml@v1
uses: matrix-org/backend-meta/.github/workflows/triage-incoming.yml@18beaf3c8e536108bd04d18e6c3dc40ba3931e28 # v2.0.3
with:
project_id: 'PVT_kwDOAIB0Bs4AG0bY'
content_id: ${{ github.event.issue.node_id }}
Expand Down
1 change: 1 addition & 0 deletions changelog.d/81.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Analyze GitHub Actions with [zizmor](https://zizmor.sh/).
1 change: 1 addition & 0 deletions changelog.d/81.misc.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update and pin remote GitHub Actions and container images.
Loading