-
Notifications
You must be signed in to change notification settings - Fork 16
Docs 1.7 in Markdown format #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
19bbb9f
177b4d2
2fccc6f
2b48a97
cf29b24
13f0309
ff46b60
5902d3c
f12af00
a9b415c
da9ab90
23aefcb
270b868
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Deploy Docs | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| paths: | ||
| - 'docs/**' | ||
| - 'mkdocs.yml' | ||
| - 'requirements.txt' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: pip install -r requirements.txt | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| run: mkdocs gh-deploy --force | ||
|
Comment on lines
+21
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Disable persisted checkout credentials before dependency install 🧰 Tools🪛 zizmor (1.26.1)[warning] 21-21: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [error] 21-21: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) [error] 23-23: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,6 @@ | |
| _ide_helper.php | ||
| .env | ||
| .idea | ||
| /site | ||
| __pycache__ | ||
| *.pyc | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?php | ||
|
|
||
| namespace App\Markdown; | ||
|
|
||
| use League\CommonMark\Environment\Environment; | ||
| use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension; | ||
| use League\CommonMark\Extension\GithubFlavoredMarkdown\GithubFlavoredMarkdownExtension; | ||
| use League\CommonMark\MarkdownConverter; | ||
|
|
||
| class GithubFlavoredMarkdownConverter | ||
| { | ||
| public function convert(string $markdown): string | ||
| { | ||
| $environment = new Environment([ | ||
| 'html_input' => 'allow', | ||
| 'allow_unsafe_links' => false, | ||
| ]); | ||
|
|
||
| $environment->addExtension(new CommonMarkCoreExtension()); | ||
| $environment->addExtension(new GithubFlavoredMarkdownExtension()); | ||
|
|
||
| return (string) (new MarkdownConverter($environment))->convert($markdown); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: InvoicePlane/Wiki
Length of output: 906
Pin the GitHub Actions to commit SHAs.
actions/checkout@v4andactions/setup-python@v5are mutable tags in a job withcontents: write, so upstream retargeting would run privileged code without a repo change.🧰 Tools
🪛 zizmor (1.26.1)
[warning] 21-21: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 21-21: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 23-23: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools