Standardisation
This commit is contained in:
parent
c00cce0895
commit
2509d99b9e
3 changed files with 39 additions and 9 deletions
2
.actrc
2
.actrc
|
|
@ -1,7 +1,7 @@
|
||||||
--bind
|
--bind
|
||||||
--action-cache-path .github/cache/act/actions
|
--action-cache-path .github/cache/act/actions
|
||||||
--artifact-server-path .github/cache/act/artifacts
|
--artifact-server-path .github/cache/act/artifacts
|
||||||
--artifact-server-port 34566
|
--artifact-server-port 34564
|
||||||
--cache-server-path .github/cache/act/cache
|
--cache-server-path .github/cache/act/cache
|
||||||
--use-new-action-cache
|
--use-new-action-cache
|
||||||
--platform self-hosted=ghcr.io/catthehacker/ubuntu:act-latest
|
--platform self-hosted=ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
|
|
||||||
30
.github/workflows/trunk.upgrade.yml
vendored
Normal file
30
.github/workflows/trunk.upgrade.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
name: Trunk Upgrade
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 8 * * 2 # Every Tuesday at 8am
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
jobs:
|
||||||
|
trunk-upgrade:
|
||||||
|
name: Upgrade Trunk
|
||||||
|
runs-on: ubuntu-latest # MB: For some reason, the action doesn't work on self-hosted runners. I've not got time to investigate why right now but its so low-frequency and fast that it doesn't matter.
|
||||||
|
permissions:
|
||||||
|
contents: write # For trunk to create PRs
|
||||||
|
pull-requests: write # For trunk to create PRs
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: "Trunk Upgrade"
|
||||||
|
uses: trunk-io/trunk-action/upgrade@v1
|
||||||
|
- name: "PR: Find Pull Request"
|
||||||
|
uses: juliangruber/find-pull-request-action@v1
|
||||||
|
id: find-pull-request
|
||||||
|
with:
|
||||||
|
labels: trunk
|
||||||
|
- name: "PR: Enable Pull Request Automerge"
|
||||||
|
continue-on-error: true
|
||||||
|
uses: peter-evans/enable-pull-request-automerge@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
pull-request-number: ${{ steps.find-pull-request.outputs.number }}
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
|
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
|
||||||
version: 0.1
|
version: 0.1
|
||||||
cli:
|
cli:
|
||||||
version: 1.21.0
|
version: 1.22.1
|
||||||
shell_hooks:
|
shell_hooks:
|
||||||
enforce: true
|
enforce: true
|
||||||
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
|
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
|
||||||
plugins:
|
plugins:
|
||||||
sources:
|
sources:
|
||||||
- id: trunk
|
- id: trunk
|
||||||
ref: v1.4.5
|
ref: v1.5.0
|
||||||
uri: https://github.com/trunk-io/plugins
|
uri: https://github.com/trunk-io/plugins
|
||||||
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
|
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
|
||||||
runtimes:
|
runtimes:
|
||||||
|
|
@ -23,17 +23,17 @@ lint:
|
||||||
- terrascan
|
- terrascan
|
||||||
enabled:
|
enabled:
|
||||||
- gitleaks@8.18.2
|
- gitleaks@8.18.2
|
||||||
- actionlint@1.6.27
|
- actionlint@1.7.0
|
||||||
- checkov@3.2.52
|
- checkov@3.2.92
|
||||||
- git-diff-check
|
- git-diff-check
|
||||||
- hadolint@2.12.0
|
- hadolint@2.12.0
|
||||||
- markdownlint@0.39.0
|
- markdownlint@0.40.0
|
||||||
- osv-scanner@1.7.0
|
- osv-scanner@1.7.3
|
||||||
- prettier@3.2.5
|
- prettier@3.2.5
|
||||||
- shellcheck@0.10.0
|
- shellcheck@0.10.0
|
||||||
- shfmt@3.6.0
|
- shfmt@3.6.0
|
||||||
- trivy@0.50.1
|
- trivy@0.51.1
|
||||||
- trufflehog@3.71.0
|
- trufflehog@3.76.2
|
||||||
- yamllint@1.35.1
|
- yamllint@1.35.1
|
||||||
- php-cs-fixer@0.0.1
|
- php-cs-fixer@0.0.1
|
||||||
ignore:
|
ignore:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue