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
23 changes: 23 additions & 0 deletions .github/workflows/code-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Code Lint

on:
Expand All @@ -24,3 +25,25 @@ jobs:
with:
dockerfile: ./Dockerfile
config: .hadolint.yaml

yaml-lint:
name: YAML Lint
runs-on: brixion-runners
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Run YAML Lint
uses: ibiqlik/action-yamllint@v3
with:
strict: true
config_data: |
extends: default
rules:
comments:
min-spaces-from-content: 1
line-length:
max: 100
allow-non-breakable-inline-mappings: true
truthy: disable
Comment thread
LegeBeker marked this conversation as resolved.
60 changes: 30 additions & 30 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
---
name: Dependabot Automate
on:
workflow_call:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: brixion-runners
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
name: Dependabot Automate

on:
workflow_call:
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: brixion-runners
if: github.event.pull_request.user.login == 'dependabot[bot]'
Comment thread
LegeBeker marked this conversation as resolved.
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
11 changes: 8 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Build and Publish Docker image

on:
Expand Down Expand Up @@ -40,7 +41,9 @@ jobs:
cache-to: type=gha,mode=max,scope=image-${{ matrix.php_version }}

- name: Save image as tarball
run: docker save frankenphp:${{ matrix.php_version }}-build -o image-${{ matrix.php_version }}.tar
run: |
docker save frankenphp:${{ matrix.php_version }}-build \
-o image-${{ matrix.php_version }}.tar

- name: Upload image artifact
uses: actions/upload-artifact@v6
Expand Down Expand Up @@ -77,8 +80,10 @@ jobs:
with:
image: frankenphp:${{ matrix.php_version }}-build
format: spdx-json
artifact-name: ${{ github.event.repository.name }}-${{ matrix.php_version }}-sbom.spdx.json
output-file: ${{ github.event.repository.name }}-${{ matrix.php_version }}-sbom.spdx.json
artifact-name: >-
${{ github.event.repository.name }}-${{ matrix.php_version }}-sbom.spdx.json
output-file: >-
${{ github.event.repository.name }}-${{ matrix.php_version }}-sbom.spdx.json
upload-artifact: true

- name: Scan SBOM for vulnerabilities
Expand Down
1 change: 1 addition & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# .hadolint.yaml
ignored:
- DL3007 # Using latest is prone to errors if the image will ever update
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ RUN apk upgrade --no-cache && \
RUN set -eux; \
install-php-extensions \
@composer \
pdo_mysql \
pdo_pgsql \
apcu \
gd \
intl \
opcache \
zip \
bcmath \
intl \
;

# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
Expand Down