https://github.com/inrixia/secret-injector
Github Action to automatically inject secrets in project files.
https://github.com/inrixia/secret-injector
Last synced: 3 months ago
JSON representation
Github Action to automatically inject secrets in project files.
- Host: GitHub
- URL: https://github.com/inrixia/secret-injector
- Owner: Inrixia
- Created: 2021-04-28T01:01:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-22T04:40:39.000Z (almost 2 years ago)
- Last Synced: 2025-03-10T19:16:31.048Z (3 months ago)
- Language: JavaScript
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/Inrixia/Secret-Injector/actions/workflows/testAction.yml)
# Secret InjectorInjects GitHub Actions Secrets & env values referenced in all project files.
## Example usage
1. Create a file in the repository which references a GitHub actions secret or env value. For example, `manifests/service.yml`:
```yml
apiVersion: v1
kind: Service
metadata:
name: ${{ secrets.NAME }}
spec:
type: LoadBalancer
ports:
- port: ${{ env.PORT }}
selector:
app: ${{ secrets.NAME }}
```2. Add the following to your workflow configuration file
```yml
- name: Secret Injector
uses: Inrixia/Secret-Injector@v1
with:
secrets: ${{ toJson(secrets) }}
env: ${{ toJson(env) }}
```3. During workflow execution, all project files will have GitHub secret or env values injected.