Skip to content

Commit

Permalink
Select specific Authelia version to validate against
Browse files Browse the repository at this point in the history
  • Loading branch information
bubylou committed Feb 23, 2024
1 parent 3ebaaf6 commit 03cc7ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 0 additions & 7 deletions Dockerfile

This file was deleted.

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This action run a validation check on an authelia configuration file. The output

**Required** The file path from the repositroy root to the configuration.yml file. Default `./configuration.yml`.

### `version`

**Required** Authelia version to validate the configuration file against. Default `latest`.

## Enironment Variables

If the configuration file excludes any setting in favor of pulling them from an environment variable then those variables will also need to be set in the action. Any string can be used instead of actual enviroment variables being used with the exception of `AUTHELIA_STORAGE_ENCRYPTION_KEY` which must be at least 20 characters long. An example of using these dummy environment variables is included in the example below.
Expand All @@ -21,11 +25,12 @@ steps:
uses: actions/checkout@v4

- name: Validate config
uses: bubylou/authelia-validate@v2
uses: bubylou/authelia-validate@v3
env:
AUTHELIA_JWT_SECRET: test
AUTHELIA_SESSION_SECRET: test
AUTHELIA_STORAGE_ENCRYPTION_KEY: twentycharacterslong
with:
file-path: ./authelia/configuration.yml
version: v4.37.5
```
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ inputs:
description: 'Path to configuration file'
required: true
default: './configuration.yml'
version:
description: 'Version of Authelia to check against'
required: true
default: 'latest'
runs:
using: 'docker'
image: 'Dockerfile'
image: authelia:${{ inputs.version }}
entrypoint: 'entrypoint.sh'
args:
- ${{ inputs.file-path }}

0 comments on commit 03cc7ab

Please sign in to comment.