Skip to content

Commit

Permalink
add malta
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Mar 9, 2024
1 parent c4cc04d commit 983151b
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Publish"
on:
push:
branches:
- main

env:
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_PAGES_API_TOKEN}}

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: setup actions
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20.5.1
registry-url: https://registry.npmjs.org
- name: install malta
run: |
curl -o malta.tgz -L https://github.com/pilcrowonpaper/malta/releases/latest/download/linux-amd64.tgz
tar -xvzf malta.tgz
- name: build
run: ./linux-amd64/malta build
- name: install wrangler
run: npm i -g wrangler
- name: deploy
run: wrangler pages deploy dist --project-name copenhagen --branch main
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions pages/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# The Copenhagen Book

The Copenhagen Book provides a general guideline on implementing auth in web applications. It is free, open source, and community maintained. It may be opinionated or incomplete at times but we hope this fills a certain void in online resources. We recommend using this alongside the [OWASP Cheat Sheet series](https://cheatsheetseries.owasp.org/index.html).

If you have any suggestions or concerns, consider opening a new issue.
31 changes: 31 additions & 0 deletions pages/malta.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "The Copenhagen Book",
"description": "A basic guideline on implementing auth for the web.",
"domain": "https://thecopenhagenbook.com",
"twitter": "@pilcrowonpaper",
"sidebar": [
{
"title": "Guides",
"pages": [
["Server-side tokens", "/server-side-tokens.md"],
["Sessions", "/sessions.md"],
["Password authentication", "/password-authentication.md"],
["Email verification", "/email-verification.md"],
["Password reset", "/password-reset.md"],
["Generating random values", "/random-values.md"],
["OAuth", "/oauth.md"],
["Multi-factor authentication (MFA)", "/mfa.md"],
["Passkeys", "/passkeys.md"],
["Cross-site request forgery (CSRF)", "/csrf.md"],
["Open redirect", "/open-redirect.md"]
]
},
{
"title": "Resources",
"pages": [
["GitHub repository", "https://github.com/pilcrowonpaper/copenhagen"],
["OWASP", "https://twitter.com/pilcrowonpaper"]
]
}
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 983151b

Please sign in to comment.