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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml linguist-generated=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: team-plain/cli-trusted-actions-owners
version: 0.0.0
library: true
extensionTargets:
codeql/actions-all: '*'
dataExtensions:
- models/**/*.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extensions:
- addsTo:
pack: codeql/actions-all
extensible: trustedActionsOwnerDataModel
data:
- ["aws-actions"]
- ["pnpm"]
- ["pulumi"]
- ["team-plain"]
18 changes: 10 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
cooldown:
default-days: 7
schedule:
interval: weekly
time: "10:30"
timezone: "Europe/London"
# A week gives compromised action releases time to be discovered before adoption.
cooldown:
default-days: 7
groups:
gha-deps:
patterns:
- "*"

- package-ecosystem: npm
directory: "/"
# Must stay at or above minimumReleaseAge in pnpm-workspace.yaml (7 days),
# or pnpm rejects whatever Dependabot proposes.
cooldown:
default-days: 7
schedule:
interval: weekly
time: "10:30"
timezone: "Europe/London"
open-pull-requests-limit: 15
# This is a published package, so Dependabot's default would widen ranges
# instead of raising them.
versioning-strategy: increase
# Must be at least minimumReleaseAge in pnpm-workspace.yaml.
cooldown:
default-days: 7
groups:
npm-patch:
applies-to: version-updates
Expand All @@ -50,5 +53,4 @@ updates:
ignore:
# Tracks the minimum supported runtime in engines.node, not latest.
- dependency-name: "@types/node"
update-types:
- "version-update:semver-major"
update-types: ["version-update:semver-major"]
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
push:
branches: [main]

permissions:
contents: read
permissions: {}

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Check out the repository
uses: actions/checkout@v7
Expand Down Expand Up @@ -47,6 +49,9 @@ jobs:
test:
name: Test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
strategy:
fail-fast: false
matrix:
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ on:
branches: [main]
schedule:
# Catches new queries shipped in CodeQL releases even when main is quiet.
- cron: "36 8 * * 2"
- cron: '36 8 * * 2'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions: {}

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
permissions:
security-events: write
Expand All @@ -26,23 +28,32 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [actions, javascript-typescript]
include:
- language: actions
runner: ubuntu-latest
# Only default setup loads .github/codeql/extensions on its own, so the model pack is
# handed to the CLI here. It extends codeql/actions-all, so it stays off the JS leg.
extra-options: >-
{"database": {"run-queries": [
"--additional-packs=.github/codeql/extensions",
"--model-packs=team-plain/cli-trusted-actions-owners"]}}
- language: javascript-typescript
runner: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
persist-credentials: false

# build-mode none reads the sources directly, so there is no pnpm install in this job.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
- uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-extended

- name: Analyze
uses: github/codeql-action/analyze@v4
- uses: github/codeql-action/analyze@v4
env:
CODEQL_ACTION_EXTRA_OPTIONS: ${{ matrix.extra-options }}
with:
category: /language:${{ matrix.language }}
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write
# npm trusted publishing: pnpm exchanges the GitHub OIDC token for a short lived publish token.
id-token: write
permissions: {}

jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
pull-requests: write
# npm trusted publishing: pnpm exchanges the GitHub OIDC token for a short lived publish token.
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v7
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/scheduled-node-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
- cron: "0 6,18 * * *"
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
bump:
name: Bump Node.js
runs-on: ubuntu-slim
timeout-minutes: 5
permissions:
contents: read
steps:
- id: app
uses: actions/create-github-app-token@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"dependencies": {
"@team-plain/graphql": "^3.2.0"
},
"packageManager": "pnpm@12.8.2+sha512.a5941679663d952c5f0ecc38ba98af98b4dc01b95780354f6894f2f873973cef2f7e2989d7db3ee5393938ae21f62fe06bcdf685d475ddad829a62095d2b8b11"
"packageManager": "pnpm@12.12.1+sha512.b7f98934c0b1f29a65f5da52f2d7f994e7faad573ffdddea1497fb4dcb5aec051590ee7c7d95a38172b4bfae103a5b83edf2ee866e11731c2cafa96063610ac5"
}
44 changes: 19 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 7 days. Keep at or below the Dependabot cooldown, or pnpm rejects its updates.
saveExact: true
minimumReleaseAge: 10080

# pnpm 12 writes its own pinned version as a first YAML document in
Expand Down
Loading