Compare commits

...

7 Commits

Author SHA1 Message Date
Kevin Franklin Kim
f6157bb906
Update publish.yml
Some checks are pending
publish / Build Docusaurus (push) Waiting to run
publish / Deploy to GitHub Pages (push) Blocked by required conditions
2025-09-12 16:09:12 +02:00
Kevin Franklin Kim
36b15221ea
Update publish.yml 2025-09-12 16:07:46 +02:00
Kevin Franklin Kim
5449d6fd6b
Update validate.yml 2025-09-12 16:03:58 +02:00
Kevin Franklin Kim
8cb7984020
Update publish.yml 2025-09-12 15:49:11 +02:00
Kevin Franklin Kim
9bd904ffea
Update publish.yml 2025-09-12 15:46:45 +02:00
Phil
3eb50dbdd0
Update publish.yml 2025-09-12 15:42:27 +02:00
Vladimir Skipina
294f6e72a0 Fix build issue 2025-09-12 15:17:31 +02:00
3 changed files with 48 additions and 34 deletions

View File

@ -1,4 +1,4 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages # https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
name: publish name: publish
on: on:
@ -6,29 +6,43 @@ on:
branches: [main] branches: [main]
jobs: jobs:
publish: build:
name: Build Docusaurus
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v4
- uses: actions/setup-node@v1 with:
fetch-depth: 0
- uses: actions/setup-node@v5
with: with:
node-version: "20.x" node-version: "20.x"
- uses: webfactory/ssh-agent@v0.5.0 cache: yarn
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages - name: Release to GitHub Pages
working-directory: foomo working-directory: foomo
env:
USE_SSH: true
GIT_USER: git
run: | run: |
git config --global user.email "publisher@foomo.org" yarn install --frozen-lockfile
git config --global user.name "gh-actions" npm run build
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile - uses: actions/upload-pages-artifact@v3
elif [ -e package-lock.json ]; then with:
npm ci path: foomo/build
else
npm i deploy:
fi name: Deploy to GitHub Pages
npm run deploy runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

View File

@ -1,26 +1,26 @@
# https://docusaurus.io/docs/deployment#deploying-to-github-pages # https://docusaurus.io/docs/deployment#triggering-deployment-with-github-actions
name: validate name: validate
on: on:
pull_request: pull_request:
branches: [main] branches: [main]
workflow_dispatch:
jobs: jobs:
validate: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v5
- uses: actions/setup-node@v1 with:
fetch-depth: 0
- uses: actions/setup-node@v5
with: with:
node-version: "20.x" node-version: "20.x"
cache: yarn
- name: Test Build - name: Test Build
working-directory: foomo working-directory: foomo
run: | run: |
if [ -e yarn.lock ]; then yarn install --frozen-lockfile
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build npm run build

View File

@ -212,8 +212,8 @@ Repository documents referenced:
Canonical references: Canonical references:
- OWASP WSTG v4.2: <https://owasp.org/www-project-web-security-testing-guide/> - OWASP WSTG v4.2: [https://owasp.org/www-project-web-security-testing-guide/]
- OWASP API Security Top10: <https://owasp.org/API-Security/> - OWASP API Security Top10: [https://owasp.org/API-Security/]
- CVSS v3.1: <https://www.first.org/cvss/> - CVSS v3.1: [https://www.first.org/cvss/]