Mandresy RABENJAHARISON 316bdee725 feat: add support for FASTAPI_TOKEN for authentication
This update introduces support for an optional `FASTAPI_TOKEN` to authorize requests against the FastAPI server. The token can be set as an input or environment variable, and if provided, it adds an `Authorization` header to requests. Documentation and configuration files have been updated accordingly to reflect this enhancement.
2025-09-16 15:30:37 +03:00

27 lines
819 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: 'weekly-odoo-timesheets'
description: 'List weekly Gitea issue tracked times (MonSat) and create Odoo timesheets via FastAPI.'
author: 'Mandresy RABENJAHARISON <mandresy.rabenjaharison@ethumada.com>'
branding:
icon: clock
color: blue
inputs:
fastapi-base-url:
description: 'Base URL of the FastAPI server.'
required: true
fastapi-token:
description: 'Bearer token used to authorize requests to the FastAPI server.'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
FASTAPI_BASE_URL: ${{ inputs.fastapi-base-url }}
FASTAPI_TOKEN: ${{ inputs.fastapi-token }}
GITEA_BASE_URL: https://gitea.ethumada.com
REPO_OWNER: ${{ gitea.event.repository.owner.login }}
REPO_NAME: ${{ gitea.event.repository.name }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}