https://github.com/textbook/atlas-ip
Permit IPs to access MongoDB Atlas
https://github.com/textbook/atlas-ip
Last synced: 12 days ago
JSON representation
Permit IPs to access MongoDB Atlas
- Host: GitHub
- URL: https://github.com/textbook/atlas-ip
- Owner: textbook
- License: isc
- Created: 2024-03-08T09:52:13.000Z (over 2 years ago)
- Default Branch: v1
- Last Pushed: 2024-03-09T17:13:43.000Z (over 2 years ago)
- Last Synced: 2025-02-09T03:06:24.749Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 462 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Allow Atlas IP
Permit GitHub Actions runners to access MongoDB Atlas.
## Usage
```yaml
- name: Permit runner to access MongoDB Atlas
uses: textbook/atlas-ip@v1
with:
atlas-private-key: ${{ secrets.ATLAS_PRIVATE_KEY }}
atlas-public-key: ${{ secrets.ATLAS_PUBLIC_KEY }}
group-id: ${{ vars.ATLAS_GROUP_ID }}
```
### Inputs
- `atlas-public-key`: API public key (must have Project Owner [role](https://www.mongodb.com/docs/atlas/reference/user-roles/#project-roles))
- `atlas-private-key`: Corresponding private key
- `comment` _(optional)_: Description comment to show in the admin panel
- Defaults to `{owner}/{repo} - {job} - {runId}`
- `group-id`: Unique 24-hexadecimal digit string that identifies the project
### Outputs
- `ip-address`: The public IP address of the runner