Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ updates:
update-types: ['version-update:semver-patch']
allow:
- dependency-type: "direct"
cooldown:
default-days: 7
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "10:00"
open-pull-requests-limit: 10
open-pull-requests-limit: 10
cooldown:
default-days: 7
12 changes: 7 additions & 5 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaults:
run:
shell: bash -l {0}

env:
env:
CACHE_NAME: node-modules-cache
BUILD_CACHE_NAME: build-cache

Expand All @@ -19,15 +19,17 @@ jobs:
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- uses: actions/setup-node@v4
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Restore Cache
uses: actions/cache/restore@v4.2.3
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
id: npm-cache
with:
path: |
Expand All @@ -41,4 +43,4 @@ jobs:
run: ./check-pristine-state package-lock.json

- name: Run tests
run: npm test
run: npm test
6 changes: 4 additions & 2 deletions .github/workflows/label-check.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: label-check

on:
pull_request_target:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

permissions: {}

jobs:
label-check:
runs-on: ubuntu-latest

steps:
- uses: actions/create-github-app-token@v2
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: app-token
with:
app-id: ${{ vars.GH_APP_ID }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,27 @@ defaults:
run:
shell: bash -l {0}

env:
env:
CACHE_NAME: node-modules-cache
BUILD_CACHE_NAME: build-cache

permissions: {}

jobs:
Create-NPM-Cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- uses: actions/setup-node@v4
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Upload to Cache
uses: actions/cache@v4.2.3
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
id: npm-cache
with:
path: |
Expand All @@ -45,21 +49,20 @@ jobs:
pull-requests: write
needs: [Create-NPM-Cache]
uses: ./.github/workflows/_build.yml
secrets: inherit

ReleaseDraft:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- uses: actions/create-github-app-token@v2
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: app-token
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Draft release notes
uses: release-drafter/release-drafter@v6
uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
13 changes: 8 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,26 @@ defaults:
run:
shell: bash -l {0}

env:
env:
CACHE_NAME: node-modules-cache

permissions: {}

jobs:
Create-NPM-Cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- uses: actions/setup-node@v4
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Upload to Cache
uses: actions/cache@v4.2.3
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
id: npm-cache
with:
path: |
Expand All @@ -44,4 +48,3 @@ jobs:
pull-requests: write
needs: [Create-NPM-Cache]
uses: ./.github/workflows/_build.yml
secrets: inherit
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@ defaults:
run:
shell: bash -l {0}

env:
env:
CACHE_NAME: node-modules-cache

permissions: {}

jobs:
Create-NPM-Cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- uses: actions/setup-node@v4
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Upload to Cache
uses: actions/cache@v4.2.3
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
id: npm-cache
with:
path: |
Expand All @@ -41,23 +45,24 @@ jobs:
needs: [Create-NPM-Cache]
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: main

- uses: actions/setup-node@v4
persist-credentials: false

- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org'

- name: Restore Cache
uses: actions/cache/restore@v4.2.3
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
id: npm-cache
with:
path: |
node_modules/
key: ${{ env.CACHE_NAME }}-${{ hashFiles('package-lock.json') }}

- run: npm run build

- name: Confirm the build hasn't changed any files
Expand All @@ -69,4 +74,4 @@ jobs:
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_VERSION: ${{ github.event.release.tag_name }}
RELEASE_VERSION: ${{ github.event.release.tag_name }}
25 changes: 25 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches:
- "main"
pull_request:
branches:
- "**"

permissions: {}

jobs:
zizmor:
runs-on: ubuntu-24.04-2cores-tools-public
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0