Questions tagged [github-secret]

55 questions
1
vote
0 answers

deploy-manifest action has failed with the error mentioned in the summary

Error: .github/workflows/deploy-manifest.yml (Line: 16, Col: 11): Unexpected value 'token:***' Error: The template is not valid. .github/workflows/deploy-manifest.yml (Line: 16, Col: 11): Unexpected value 'token:***' deploy-manifests.yml name:…
1
vote
0 answers

Can you use GitHub Secrets in application.yaml or can it only be used in the Workflow file?

I want to store DB credentials in GitHub secrets. Wondering if they can be used like so: datasource: url: db_name username: ${{ secrets.username }} password: ${{ secrets.password }} Or will the secrets only work in the workflow files?…
Clancinio
  • 734
  • 6
  • 21
  • 40
0
votes
1 answer

Can you run a GitHub Action whenever a secret is created/updated/deleted?

Is there a way to trigger the run of a GitHub Action when a secret is added/updated/deleted in the repository?
crimbler2
  • 23
  • 7
0
votes
0 answers

Is it possible to share secrets, variables and reuse workflows in private organization with GitHub Team plan?

Currently I use free plan for my organization, where each repo is private(and will remain such). My goal is to share secrets and variables over my organization and reuse workflows, instead of copying the workflow code and secrets into each…
0
votes
0 answers

GitHub secrets scanning - not working as intended

I've been attempting to prevent commits that contain hardcoded secrets. I presumed the 'Push Protection' feature under secret scanning would manage this. However, it seems to fall short as I can still push hardcoded secrets without them being…
user2297083
  • 168
  • 11
0
votes
1 answer

Scan artifact for leaked secrets before uploading to GitHub via Actions

I am using GitHub Actions to run some test scripts and then push a report as an artifact which is published via GitHub Pages. GitHub obfuscates secrets in logs, however the test report would show the secrets. I would like to either warn if this…
0
votes
1 answer

GitHub Action copy my env file github secrets to server

How to copy my GitHub secrets (env) file to my server path using ssh deploy method? The .env file created by GitHub action is not being uploaded to my Ubuntu server.
Saran raj
  • 11
  • 2
0
votes
1 answer

GitHub Action for adding all variables and secrets to .env.local

I was searching a lot how to add all the GitHub variables and secrets in a file without concerning about them. Now I am using this manual solution. Which forces me to always change here according to the new added/removed variables/secrets: - name:…
Arshavin
  • 13
  • 2
0
votes
1 answer

Github Actions: How to store kubeconfig in github secrets

I have this kubeconfig file apiVersion: v1 clusters: - cluster: certificate-authority-data: *** server: *** name: *** contexts: - context: cluster: *** user: webhook name: ***** current-context: ***** kind: Config preferences:…
Amin Ba
  • 1,603
  • 1
  • 13
  • 38
0
votes
1 answer

Github Actions secret not being passed to workflow

I have the following code to do a repository dispatch to another repository: jobs: trigger-repository-dispatch: runs-on: ubuntu-latest env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} REPOSITORY: ${{ inputs.repository }} steps: -…
MrBlackV
  • 43
  • 7
0
votes
1 answer

Accessing GitHub secrets in job saved as a YAML file

I want to access my secret from a yml file. I am saving secrets like this: USER_NAME: secrets.AZURE_ID password: secrets.pass_SECRET Then I am loading them in a step like this: - name: read yml file python run: | pip install pyyaml …
0
votes
0 answers

Does GitHub allow to enable secrets managing for collaborators?

I've tried to google this but failed to find any info, so: I'm invited to a repository to collaborate I'm not seeing the Settings tab at all Can the repo admin configure it in a way that allows me to manage Settings and, more precisely, Secrets,…
YakovL
  • 7,557
  • 12
  • 62
  • 102
0
votes
1 answer

Github Actions python build error: "AttributeError: __enter__"

I have a webscraper that runs locally, and puts the data in a mysql database hosted on filess.io. Wanted to set up a schedule on github actions to run it consistently, but the build fails here: try: with connect( host=DB_HOST, …
jenanator
  • 1
  • 2
0
votes
0 answers

Are new created Github secrets available to existing workflows that failed before?

I have some private repositories installed in my project, one of them is Laravel Nova. I need to provide a username and password when running my Github actions (workflows). An example piece of code from my workflow is: - name: Install Dependencies …
Baspa
  • 1,099
  • 1
  • 18
  • 49
0
votes
0 answers

How To access a GitHub Repo by providing Github Secret in authentication from Powershell?

I have a Database folder in my Github repository which contains SQL scripts. I can access the repo only using GitHub secrets. I want to download the scripts using Invoke-WebRequest Powershell cmdlet and run those scripts using Invoke-Sqlcmd cmdlet…