Skip to content

Commit 14092cb

Browse files
authored
Merge pull request #4 from OpenPathfinder/docs/website
2 parents 421e35a + 50bf37b commit 14092cb

File tree

1 file changed

+25
-124
lines changed

1 file changed

+25
-124
lines changed

README.md

Lines changed: 25 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -6,131 +6,32 @@ Fortify your Digital Sphere, once command at a time
66

77
---
88

9-
10-
## Table of Contents
11-
12-
- [Introduction](#introduction)
13-
- [Demo](#demo)
14-
- [Installation](#installation)
15-
- [npm](#npm)
16-
- [Docker Container](#docker-container)
17-
- [Source Code](#source-code)
18-
- [Usage](#usage)
19-
- [Version Command](#version-command)
20-
- [Policy Management Command](#policy-management-command)
21-
- [GitHub Tokens](#github-tokens)
22-
- [Policies](#policies)
23-
- [Contributing](#contributing)
24-
- [License](#license)
25-
26-
## Introduction
27-
28-
fortSphere is a CLI tool designed to help you manage and fortify your digital sphere by applying various policies to your GitHub organization(s) and repositories.
29-
30-
## Demo
31-
32-
### Scenario: While the Setup is fine using `restrictRepoCreationGitHub`
33-
34-
**GitHub UI (before)**
35-
![Screenshot from 2024-12-19 02-54-57](https://github.com/user-attachments/assets/c85cad6b-7fc9-4060-a723-8f48be10861a)
36-
37-
**fortSphere run and logs**
38-
![Screenshot from 2024-12-19 02-39-04](https://github.com/user-attachments/assets/fe483669-0228-46b4-8517-091f5f49b558)
9+
**fortSphere** is a community-driven, open-source CLI tool crafted with love by maintainers for maintainers. It empowers you to secure and streamline your GitHub organizations and repositories, ensuring you’re always in control. Built with a secure-by-default philosophy, fortSphere guarantees that:
10+
- **Your Tokens and Data Stay Local:** All operations are performed locally—your sensitive information never leaves your machine.
11+
- **No Blind Trust Required:** As an open-source project, you don’t need to trust others—just the transparent and collaborative efforts of its contributors.
3912

4013
---
4114

42-
### Scenario: When the setup requires changes using `restrictRepoCreationGitHub`
43-
44-
**GitHub UI (before)**
45-
![Screenshot from 2024-12-19 02-55-14](https://github.com/user-attachments/assets/8c92af79-ca25-473c-ad32-45e08157e6a6)
46-
47-
**fortSphere run and logs**
48-
![Screenshot from 2024-12-19 02-41-00](https://github.com/user-attachments/assets/59470423-2fad-4963-bf49-8d86118501ed)
49-
50-
---
51-
52-
## Installation
53-
54-
### npm
55-
56-
You can install it globally:
57-
58-
```bash
59-
npm i -g fortsphere
60-
fortsphere version
61-
```
62-
63-
You can use it as `npx`:
64-
65-
```bash
66-
npx fortsphere version
67-
```
68-
69-
### Docker container
70-
71-
You can use Docker:
72-
73-
```bash
74-
docker pull ghcr.io/openpathfinder/fortsphere:latest
75-
docker run --rm ghcr.io/openpathfinder/fortsphere:latest version
76-
```
77-
78-
You can create an alias like `alias fortsphere="docker run --rm ghcr.io/openpathfinder/fortsphere:latest"`
79-
80-
### Source Code
81-
To install fortSphere, clone the repository and install the dependencies:
82-
83-
```sh
84-
git clone https://github.com/OpenPathfinder/fortSphere.git
85-
cd fortsphere
86-
npm install
87-
```
88-
89-
You can create an alias like `alias fortsphere="node fortsphere.js"`
90-
91-
## Usage
92-
93-
94-
### Version Command
95-
96-
Display the current version of fortSphere:
97-
98-
```bash
99-
fortsphere version
100-
```
101-
102-
### Policy Management Command
103-
104-
Manage policies for your GitHub organization:
105-
106-
- List all available policies:
107-
```bash
108-
fortsphere policy --list
109-
```
110-
- Apply a policy to a GitHub organization:
111-
```bash
112-
fortsphere policy --apply <policy> --github-org <githubOrg>
113-
```
114-
115-
### GitHub Tokens
116-
117-
To run this application, you need a GitHub token with `admin:write` permissions.
118-
119-
#### Injecting the Token
120-
121-
- Use an environment variable named `GITHUB_TOKEN` to supply the token.
122-
- Alternatively, you can use a `.env` file and load it with the command `node --env-file=.env fortsphere.js policy --apply <policy> --github-org <githubOrg>` when doing local development
123-
- While using docker images you can use `docker run --rm -e GITHUB_TOKEN=mytoken ghcr.io/openpathfinder/fortsphere:latest policy --apply <policy> --github-org <githubOrg>`
124-
125-
## Policies
126-
127-
fortSphere includes the following policies:
128-
129-
- **restrictRepoCreationGitHub**: This policy is designed to prevent members of a GitHub organization from creating new repositories. This includes public and private repositories. This policy will set the following values for the organization(`members_allowed_repository_creation_type=none`, `members_can_create_public_repositories=false`, `members_can_create_private_repositories=false`) at the organization level.
130-
131-
## Contributing
132-
133-
Contributions are welcome! Please read the contributing guidelines first.
15+
## Key Features:
16+
17+
- **Centralized Policy Management:** Apply security and operational policies across all your GitHub organizations with one command.
18+
- **Real-Time Checks and Updates:** Detect non-compliant configurations and resolve them automatically.
19+
- **Customizable Policies:** Choose from a suite of predefined policies or create your own.
20+
21+
## Documentation
22+
23+
- [About](https://openpathfinder.com/docs/fortSphere)
24+
- [Key Features](https://openpathfinder.com/docs/fortSphere#key-features)
25+
- [Demo Walkthrough](https://openpathfinder.com/docs/fortSphere#demo-walkthrough)
26+
- [Why fortSphere?](https://openpathfinder.com/docs/fortSphere#why-fortsphere)
27+
- [Installation](https://openpathfinder.com/docs/fortSphere/installation)
28+
- [npm](https://openpathfinder.com/docs/fortSphere/installation#npm)
29+
- [Docker Container](https://openpathfinder.com/docs/fortSphere/installation#docker-container)
30+
- [Source Code](https://openpathfinder.com/docs/fortSphere/installation#source-code)
31+
- [Usage](https://openpathfinder.com/docs/fortSphere/usage)
32+
- [Version Command](https://openpathfinder.com/docs/fortSphere/usage#version-command)
33+
- [Policy Management Command](https://openpathfinder.com/docs/fortSphere/usage#policy-management-command)
34+
- [GitHub Tokens](https://openpathfinder.com/docs/fortSphere/usage#github-tokens)
35+
- [Policies](https://openpathfinder.com/docs/fortSphere/policies)
36+
- Contributing (_Soon_)
13437

135-
## License
136-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

0 commit comments

Comments
 (0)