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

on:
workflow_call:
inputs:
head-ref:
required: true
type: string
secrets:
GITHUB_TOKEN:
required: true
workflow_call: {}

permissions: {}

Expand All @@ -24,7 +17,15 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ inputs.head-ref }}
# When the caller triggers on pull_request_target, we need to pass in this ref
# in order to lint the code from the feature branch. If the caller triggers on
# pull_request, passing in this ref isn't necessary, but does no harm.
ref: ${{ format('refs/pull/{0}/merge', github.event.number) }}
# Fetch full history so Trunk can compute the PR diff against the base branch.
# The default (fetch-depth: 1) is a shallow clone with no merge-base, which
# would force Trunk to fetch on the fly — and that fetch would fail because
# persist-credentials: false strips the token after the initial checkout.
fetch-depth: 0
persist-credentials: false
- name: Trunk Check
uses: trunk-io/trunk-action@04ba50e7658c81db7356da96657e6e77f220bfa3 # v1.3.1
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
issues: write # needed by release-please-action to write issues
steps:
- name: Create Token for MasterpointBot App
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 #v3.1.1
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 #v3.2.0
id: generate-token
with:
app-id: ${{ secrets.MP_BOT_APP_ID }}
private-key: ${{ secrets.MP_BOT_APP_PRIVATE_KEY }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
permission-contents: write
permission-pull-requests: write
permission-issues: write

- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f #v4.1.3
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 #v5.0.0
with:
token: ${{ steps.generate-token.outputs.token }}
release-type: ${{ inputs.release-type }}
2 changes: 0 additions & 2 deletions .github/workflows/tf-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ on:
required: true
SPACELIFT_API_KEY_SECRET:
required: true
GITHUB_TOKEN:
required: true

permissions: {}

Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/zizmor.yaml

This file was deleted.