Skip to content

Commit

Permalink
docs: add reuse software
Browse files Browse the repository at this point in the history
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
  • Loading branch information
james-d-elliott committed Apr 9, 2023
1 parent 13a45bd commit 7f12852
Show file tree
Hide file tree
Showing 1,097 changed files with 5,185 additions and 278 deletions.
3 changes: 3 additions & 0 deletions .all-contributorsrc.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2019 Authelia

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions .buildkite/annotations/artifacts.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2019 Authelia

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions .buildkite/annotations/bypass.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2019 Authelia

SPDX-License-Identifier: Apache-2.0
5 changes: 5 additions & 0 deletions .buildkite/deployment.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -u

DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?)
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/hooks/post-artifact
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set +u

if [[ "${BUILDKITE_LABEL}" == ":docker: Build Image [coverage]" && "${BUILDKITE_AGENT_NAME}" =~ ^vega[0-9]+$ ]]; then
Expand Down
6 changes: 5 additions & 1 deletion .buildkite/hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set +u

git fetch -q
Expand All @@ -14,4 +18,4 @@ if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] || \
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]] || [[ "${BUILDKITE_LABEL}" =~ ":selenium:" ]]; then
go mod download
fi
fi
fi
4 changes: 4 additions & 0 deletions .buildkite/hooks/post-command
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set +u

if [[ "${BUILDKITE_PULL_REQUEST}" != "false" ]]; then
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/hooks/pre-artifact
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set +u

declare -A BUILDS=(["linux"]="amd64 arm arm64 amd64-musl arm-musl arm64-musl" ["freebsd"]="amd64")
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set +u

INTEGRATION() {
Expand Down
6 changes: 5 additions & 1 deletion .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set +u

if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] && \
Expand All @@ -8,4 +12,4 @@ if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] && \
docker system prune -af --volumes
fi

sudo find /tmp/ ! -wholename "/tmp/" ! -name "buildkite*" ! -name "job-env-*" -type d,f -exec rm -rf {} +
sudo find /tmp/ ! -wholename "/tmp/" ! -name "buildkite*" ! -name "job-env-*" -type d,f -exec rm -rf {} +
5 changes: 5 additions & 0 deletions .buildkite/integration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -u

DIRECTORY="unset"
Expand Down
5 changes: 5 additions & 0 deletions .buildkite/pipeline.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -u

DIVERGED=$(git merge-base --fork-point origin/master > /dev/null; echo $?)
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
# This represents the hardcoded pipeline set in Buildkite interface which executes the repo provided dynamic pipeline.
# It is used to ensure that insecure code from external PR cannot be executed before a maintainers approval, to avoid
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/steps/aptdeploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

for FILE in authelia_amd64.deb authelia_arm64.deb authelia_armhf.deb; do
mv ${FILE} ${FILE/authelia_/authelia_${BUILDKITE_TAG//v}-1_}
done
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/steps/aurhelper.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

GITTAG=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')

echo "--- :linux: Deploy AUR package: ${PACKAGE}"
Expand Down
5 changes: 5 additions & 0 deletions .buildkite/steps/aurpackages.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -eu

for AUR_PACKAGE in authelia authelia-bin authelia-git; do
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/steps/debhelper.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

GITTAG=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')

if [[ "${BUILDKITE_TAG}" == "" ]]; then
Expand Down
5 changes: 5 additions & 0 deletions .buildkite/steps/debpackages.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -eu

for DEB_PACKAGE in amd64 armhf arm64; do
Expand Down
5 changes: 5 additions & 0 deletions .buildkite/steps/e2etests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -eu

for SUITE_NAME in $(authelia-scripts suites list); do
Expand Down
5 changes: 5 additions & 0 deletions .buildkite/steps/ghartifacts.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

set -eu

artifacts=()
Expand Down
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
codecov:
require_ci_to_pass: true
Expand Down
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

# Ignore All
*

Expand Down
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

root = true

[*]
Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

* text=auto

*.go text
Expand Down
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
# These are supported funding model platforms

Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
name: Bug Report
description: Report a bug
Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
blank_issues_enabled: false
contact_links:
Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
name: Feature Request
description: Submit a Feature Request
Expand Down
4 changes: 4 additions & 0 deletions .github/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/required-apps"

Expand Down
4 changes: 4 additions & 0 deletions .github/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

if [ -n "$NO_HOOK" ]; then
exit 0
fi
Expand Down
4 changes: 4 additions & 0 deletions .github/probot.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2019 Authelia
//
// SPDX-License-Identifier: Apache-2.0

// PR commentary for Authelia branch based contributions
on('pull_request.opened')
.filter(
Expand Down
4 changes: 4 additions & 0 deletions .github/required-apps
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

if [ ! -x "$(command -v golangci-lint)" ]; then
echo "You must install golangci-lint."
exit 1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

---
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/reuse-compliance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0
---
name: REUSE Compliance Check

on:

Check warning on line 7 in .github/workflows/reuse-compliance.yml

View check run for this annotation

reviewdog / yamllint

[yamllint] .github/workflows/reuse-compliance.yml#L7

[warning] truthy value should be one of [false, true] (truthy)
Raw output
./.github/workflows/reuse-compliance.yml:7:1: [warning] truthy value should be one of [false, true] (truthy)
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
...
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

# IDE user configuration
.idea/
.vscode/
Expand Down
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ issues:
- (G104|G307)
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
- Potential file inclusion via variable
exclude-rules:
- linters:
- godot
source: '^// SPDX-License-Identifier: Apache-2.0$'
- linters:
- godot
source: '^// SPDX-FileCopyrightText: .*?$'
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2019 Authelia

SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions .healthcheck.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Authelia
#
# SPDX-License-Identifier: Apache-2.0

# Default Template
X_AUTHELIA_HEALTHCHECK_SCHEME=http
X_AUTHELIA_HEALTHCHECK_HOST=localhost
Expand Down
3 changes: 3 additions & 0 deletions .renovaterc.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2019 Authelia

SPDX-License-Identifier: Apache-2.0

0 comments on commit 7f12852

Please sign in to comment.