Skip to content

Commit ed7eecd

Browse files
authored
Minor action/readme fixups (#24)
1 parent b66569a commit ed7eecd

4 files changed

Lines changed: 59 additions & 9 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Markdown Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- '**/*.md'
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
markdownlint:
16+
name: runner / markdownlint
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Harden runner
20+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
21+
with:
22+
egress-policy: audit
23+
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25+
with:
26+
fetch-depth: 0
27+
persist-credentials: true
28+
29+
- name: generate cultivator token
30+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
31+
id: generate-token
32+
with:
33+
app-id: "${{ secrets.EDERA_CULTIVATION_APP_ID }}"
34+
private-key: "${{ secrets.EDERA_CULTIVATION_APP_PRIVATE_KEY }}"
35+
36+
- name: markdownlint
37+
uses: step-security/action-markdownlint@d73340eb9977ec4bda276978f3239949cfa76e77
38+
with:
39+
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
40+
reporter: github-pr-review
41+
level: warning
42+
fail_level: error
43+
markdownlint_flags: '--config .markdownlint.json .'
44+
continue-on-error: false
45+

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
command: release
4848
env:
4949
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
50+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
5051

5152
release-plz-pr:
5253
if: ${{ github.repository_owner == 'edera-dev' }}

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ A CLI tool to validate your system is ready to install or use Edera, and generat
66

77
## Installation
88

9-
## Usage
10-
119
### Install via Cargo
1210

1311
``` bash
1412
cargo install edera-check
13+
sudo edera-check --help
1514
```
1615

1716
### Run official release via Docker
@@ -26,13 +25,7 @@ docker run \
2625

2726
`podman` et al should also work.
2827

29-
### Run locally from repo root via Docker
30-
31-
Recommended way to run locally and debug/validate, will use local copy of repo.
32-
33-
```bash
34-
sh hack/debug/local.sh
35-
```
28+
## Usage
3629

3730
### General usage
3831

@@ -116,3 +109,11 @@ for a list of available configuration options and usage tweaks.
116109
* [src/helpers](src/helpers) - Shared bits.
117110

118111
By default, everything runs inside the container, and any system tools or binaries or other bits needed by the checkers can be installed or baked inside the container. For checks that need to jump out and touch the host filesystem or state, we use the [src/helpers/host_executor.rs](src/helpers/host_executor.rs).
112+
113+
### Run locally from repo root via Docker
114+
115+
Recommended way to run locally and debug/validate, will use local copy of repo.
116+
117+
```bash
118+
sh hack/debug/local.sh
119+
```

0 commit comments

Comments
 (0)