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
18 changes: 18 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint

on: pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
lint:
uses: masterpointio/actions/.github/workflows/lint.yaml@7dad35e85d864ca5dda0971dfd3c940cc67ed380 #v0.3.0
permissions:
actions: read # for trunk-action
checks: write # for trunk-action
contents: read # for trunk-action + checkout
pull-requests: read # for action-semantic-pull-request
29 changes: 0 additions & 29 deletions .github/workflows/lint.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create Release via Google Release Please

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
release-please:
uses: masterpointio/actions/.github/workflows/release-please.yaml@7dad35e85d864ca5dda0971dfd3c940cc67ed380 #v0.3.0
with:
release-type: simple
secrets:
MP_BOT_APP_ID: ${{ secrets.MP_BOT_APP_ID }}
MP_BOT_APP_PRIVATE_KEY: ${{ secrets.MP_BOT_APP_PRIVATE_KEY }}
permissions:
contents: write # needed by release-please-action
pull-requests: write # needed by release-please-action
issues: write # needed by release-please-action
18 changes: 0 additions & 18 deletions .github/workflows/release-please.yml

This file was deleted.

21 changes: 17 additions & 4 deletions .github/workflows/test.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ name: Tests

on: pull_request

permissions:
contents: read
checks: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
test-typescript:
name: test-typescript
runs-on: ubuntu-latest
permissions:
contents: read # needed by actions/checkout
checks: write # needed by jest-coverage-report-action
pull-requests: write # needed by jest-coverage-report-action

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
Expand All @@ -27,11 +35,16 @@ jobs:
test-action-on-itself:
name: Test the GitHub Action on itself
runs-on: ubuntu-latest
permissions:
contents: read # needed by actions/checkout
pull-requests: write # needed to post PR comments

steps:
- name: Checkout
id: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Test Local Action (Individual File Mode)
id: test-action-opa-files
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/trunk-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Trunk Upgrade

on:
workflow_call:
secrets:
MP_BOT_APP_ID:
required: true
MP_BOT_APP_PRIVATE_KEY:
required: true
MASTERPOINT_TEAM_PAT:
required: true

permissions: {}

jobs:
trunk-upgrade:
name: trunk upgrade
runs-on: ubuntu-latest
permissions:
contents: write # needed by github-action-trunk-upgrade to write repository contents
pull-requests: write # needed by github-action-trunk-upgrade to write pull requests
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run Trunk Upgrade
uses: masterpointio/github-action-trunk-upgrade@a79fd65d524d92031fe167daee411d2f25d4a999 # v0.1.0
with:
app-id: ${{ secrets.MP_BOT_APP_ID }}
app-private-key: ${{ secrets.MP_BOT_APP_PRIVATE_KEY }}
github-token: ${{ secrets.MASTERPOINT_TEAM_PAT }}
reviewers: "@masterpointio/masterpoint-open-source"
26 changes: 0 additions & 26 deletions .github/workflows/trunk-upgrade.yml

This file was deleted.

15 changes: 14 additions & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cli:
plugins:
sources:
- id: trunk
ref: v1.7.6
ref: v1.10.1
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
Expand All @@ -33,6 +33,19 @@ lint:
- trivy@0.69.2
- trufflehog@3.90.13
- yamllint@1.38.0
- zizmor@1.25.2
definitions:
- name: zizmor
environment:
# Optional token here so that it's not needed locally, but can be used
# when trunk is called from our lint workflow in GHA
- name: ZIZMOR_GITHUB_TOKEN
value: ${env.GITHUB_TOKEN}
optional: true
commands:
# Set to pedantic so that zizmor will run its stale-action-refs audit rule
- name: lint
run: zizmor --format=sarif --persona=pedantic ${target}
actions:
enabled:
- trunk-announce
Expand Down
Loading