* bump version * fix formatting locale reset after embedded controller sub-requests (#5944) * fix GHSA-c6w6-57jj-62vh * fix GHSA-m492-gv72-xvxj * fix GHSA-jr9p-4h4j-6c58 * make sure to only use JS logic to call API endpoints * fixes GHSA-r8vr-m544-qh4h * make sure to only use JS logic to call API endpoints * fix GHSA-rw46-qg69-vg6h * fix GHSA-pj8j-p4g4-4vw8 - prevent kimai from rendering images via markdown * fix GHSA-pj8j-p4g4-4vw8 - use a safe network client to prevent SSRF via images * fix GHSA-xv4r-4885-gwpg * fix GHSA-pgcc-vfmc-7cw5 - move GET routes to API with POST method to prevent CSRF * fix tooltip survives page reload * updated wizard images * split wizard and password reset subscriber into two classes * relax upper php limit * added zizmor workflow scans and apply findings * user permissions <name>_other_profile now respect teams * move all linting steps to new job * updated docker image version names * use .env.local for storing APP_SECRET * improve build order and use given tag as ref for checkout, not default main branch * improved APP_SECRET handling, see entrypoint.sh * use local code for building the image for more flexibility, added dockerignore
53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
name: 'Website update'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
kimai_version:
|
|
description: 'Kimai version for the website'
|
|
required: true
|
|
release:
|
|
types: [released]
|
|
|
|
concurrency:
|
|
group: update-website
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
name: Trigger version update for website
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Determine Version"
|
|
env:
|
|
GITHUB_EVENT_INPUTS_KIMAI_VERSION: ${{ github.event.inputs.kimai_version }}
|
|
GITHUB_EVENT_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
|
|
run: |
|
|
input="${GITHUB_EVENT_INPUTS_KIMAI_VERSION}"
|
|
|
|
# Determine between manual trigger and release event
|
|
if [ -z "$input" ]; then
|
|
echo "No input provided, using release tag"
|
|
version="${GITHUB_EVENT_RELEASE_TAG_NAME}"
|
|
else
|
|
echo "Using input provided: $input"
|
|
version="$input"
|
|
fi
|
|
|
|
echo "kimai_version=$version" >> $GITHUB_ENV
|
|
|
|
if [[ ! $version =~ ^2\.(0|[1-9]*)(0?)\.(0|[0-9]*)(0?)$ ]]; then
|
|
echo "Invalid version number: $version"
|
|
exit 1
|
|
fi
|
|
|
|
- name: Emit repository_dispatch
|
|
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
|
|
with:
|
|
token: ${{ secrets.WEBSITE_ACCESS_TOKEN }}
|
|
repository: kimai/www.kimai.org
|
|
event-type: kimai_release
|
|
client-payload: '{"kimai_version": "${{ env.kimai_version }}"}'
|