Skip to content

Commit bd83256

Browse files
Update README.md (#15)
* Update README.md * Update README.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update README.md * Update README.md * Update README.md --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e62ef0e commit bd83256

File tree

1 file changed

+34
-35
lines changed

1 file changed

+34
-35
lines changed

README.md

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
1-
# Orb Template
1+
# CircleCI MegaLinter Orb
22

3-
<!---
4-
[![CircleCI Build Status](https://circleci.com/gh/<organization>/<project-name>.svg?style=shield "CircleCI Build Status")](https://circleci.com/gh/<organization>/<project-name>) [![CircleCI Orb Version](https://badges.circleci.com/orbs/<namespace>/<orb-name>.svg)](https://circleci.com/developer/orbs/orb/<namespace>/<orb-name>) [![GitHub License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/<organization>/<project-name>/master/LICENSE) [![CircleCI Community](https://img.shields.io/badge/community-CircleCI%20Discuss-343434.svg)](https://discuss.circleci.com/c/ecosystem/orbs)
3+
[![CircleCI Build Status](https://circleci.com/gh/RelativeSure/circleci-megalinter-orb.svg?style=shield "CircleCI Build Status")](https://circleci.com/gh/RelativeSure/circleci-megalinter-orb) [![GitHub License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/RelativeSure/circleci-megalinter-orb/master/LICENSE) [![CircleCI Community](https://img.shields.io/badge/community-CircleCI%20Discuss-343434.svg)](https://discuss.circleci.com/c/ecosystem/orbs)
54

6-
--->
5+
## Environment Variables
76

8-
A project template for Orbs.
7+
The following environment variables must be configured:
98

10-
This repository is designed to be automatically ingested and modified by the CircleCI CLI's `orb init` command.
9+
| Variable | Description | Required |
10+
|----------|-------------|-----------|
11+
| `DOCKER_HUB_USER` | Docker Hub username for pulling MegaLinter image | Yes |
12+
| `DOCKER_HUB_PASSWORD` | Docker Hub password for pulling MegaLinter image | Yes |
13+
| `GITHUB_TOKEN` | GitHub token for MegaLinter GitHub integration | Yes |
1114

12-
_**Edit this area to include a custom title and description.**_
13-
14-
Following variables needs to be set to correct clone the megalinter image. They are personal API keys from Docker Hub.
15-
16-
```bash
17-
$DOCKERHUB_USERNAME
18-
$DOCKERHUB_PASSWORD
19-
```
20-
21-
Setup GitHub auth within Megalinter orb by setting following environment variable:
22-
23-
```bash
24-
$GITHUB_TOKEN
25-
```
26-
27-
---
15+
### Security Notes
16+
- GitHub Token: Use a token with minimal required permissions (read-only access recommended)
17+
- Docker Hub: Consider using a restricted access token instead of password
18+
- For CircleCI security best practices, see [Using Contexts](https://circleci.com/docs/contexts/)
2819

2920
## Resources
3021

31-
[CircleCI Orb Registry Page](https://circleci.com/developer/orbs/orb/<namespace>/<orb-name>) - The official registry page of this orb for all versions, executors, commands, and jobs described.
22+
[CircleCI Orb Registry Page](https://circleci.com/developer/orbs/orb/RelativeSure/megalinter) - The official registry page of this orb for all versions, executors, commands, and jobs described.
3223

3324
[CircleCI Orb Docs](https://circleci.com/docs/orb-intro/#section=configuration) - Docs for using, creating, and publishing CircleCI Orbs.
3425

26+
All examples are shown in [the examples folder](src/examples/)
27+
3528
### How to Contribute
3629

37-
We welcome [issues](https://github.com/<organization>/<project-name>/issues) to and [pull requests](https://github.com/<organization>/<project-name>/pulls) against this repository!
30+
We welcome [issues](https://github.com/RelativeSure/circleci-megalinter-orb/issues) and [pull requests](https://github.com/RelativeSure/circleci-megalinter-orb/pulls) against this repository!
31+
32+
#### Contribution Guidelines
33+
1. Fork and clone the repository
34+
2. Create a new branch for your changes
35+
3. Make your changes following our coding standards
36+
4. Test your changes locally
37+
5. Submit a pull request with a clear description of the changes
3838

39-
### How to Publish An Update
39+
For more details, see our [Contributing Guide](CONTRIBUTING.md).
40+
41+
### How to Publish an Update
4042

4143
1. Merge pull requests with desired changes to the main branch.
4244
- For the best experience, squash-and-merge and use [Conventional Commit Messages](https://conventionalcommits.org/).
4345
2. Find the current version of the orb.
44-
- You can run `circleci orb info <namespace>/<orb-name> | grep "Latest"` to see the current version.
45-
3. Create a [new Release](https://github.com/<organization>/<project-name>/releases/new) on GitHub.
46+
- You can run `circleci orb info RelativeSure/megalinter | grep "latest"` to see the current version.
47+
3. Create a [new release](https://github.com/RelativeSure/circleci-megalinter-orb/releases/new) on GitHub.
4648
- Click "Choose a tag" and _create_ a new [semantically versioned](http://semver.org/) tag. (ex: v1.0.0)
4749
- We will have an opportunity to change this before we publish if needed after the next step.
48-
a. Click _"+ Auto-generate release notes"_.
50+
- Click _"+ Auto-generate release notes"_.
4951
- This will create a summary of all of the merged pull requests since the previous release.
5052
- If you have used _[Conventional Commit Messages](https://conventionalcommits.org/)_ it will be easy to determine what types of changes were made, allowing you to ensure the correct version tag is being published.
5153
4. Now ensure the version tag selected is semantically accurate based on the changes included.
@@ -56,21 +58,18 @@ We welcome [issues](https://github.com/<organization>/<project-name>/issues) to
5658

5759
Prerequisites:
5860

59-
- An initial sevmer deployment must be performed in order for Development orbs to be published and seen in the [Orb Registry](https://circleci.com/developer/orbs).
61+
- An initial semver deployment must be performed in order for development orbs to be published and seen in the [Orb Registry](https://circleci.com/developer/orbs).
6062

61-
A [Development orb](https://circleci.com/docs/orb-concepts/#development-orbs) can be created to help with rapid development or testing. To create a Development orb, change the `orb-tools/publish` job in `test-deploy.yml` to be the following:
63+
A [Development Orb](https://circleci.com/docs/orb-concepts/#development-orbs) can be created to help with rapid development or testing. To create a development orb, change the `orb-tools/publish` job in `test-deploy.yml` to be the following:
6264

6365
```yaml
6466
- orb-tools/publish:
65-
orb_name: <namespace>/<orb-name>
67+
orb_name: RelativeSure/megalinter
6668
vcs_type: << pipeline.project.type >>
6769
pub_type: dev
6870
# Ensure this job requires all test jobs and the pack job.
6971
requires:
7072
- orb-tools/pack
7173
- megalinter/megalinter
72-
context: <publishing-context>
74+
context: < organization context >
7375
filters: *filters
74-
```
75-
76-
The job output will contain a link to the Development orb Registry page. The parameters `enable_pr_comment` and `github_token` can be set to add the relevant publishing information onto a pull request. Please refer to the [orb-tools/publish](https://circleci.com/developer/orbs/orb/circleci/orb-tools#jobs-publish) documentation for more information and options.

0 commit comments

Comments
 (0)