Questions tagged [github-secret]

55 questions
2
votes
1 answer

pass Github secrets to a docker github action

Hi my devoted and beloved developers! Today I face trouble trying to transmit GitHub secrets to a docker GitHub action in order to use this variable in the container. I already have defined for the project the secret what_a_secret for the key…
Jérémy
  • 1,790
  • 1
  • 24
  • 40
2
votes
2 answers

How to get GitHub secrets of host repository as input in github action?

We have a repository named recent-activity which hosts a GitHub action and is available for use to all GitHub users. We want to add a URL on which we can send http requests when the action is run (by any user). However, we don't want to disclose the…
2
votes
1 answer

How to pass arguments from github actions to unit tests in rust

I would like to use github secrets to inject a secret API key into my unit testing functions to prevent having ay API key within the source: My (simplfied) test is defining the APIKEY as string constant. const APIKEY: &str =…
pat
  • 41
  • 3
2
votes
0 answers

Can you incorporate Github secrets in a custom configuration yml file?

I have a python project where I intend to have a .yml config file. My question is, can something like this work in a github repo: name: something API_KEY: ${{ secrets.API_KEY }} name: somehting2 SECRET_ID: ${{ secrets.SECRET_ID }} This is not…
1
vote
1 answer

Injecting a github secrets into the user repository

I'm trying to inject a github secret variable into a repository of an oauth 2.0 connected user (which means that i have its access token) i'm using octokit to create a create a deploy key on the repository (of 4096 bytes) , then use sodium library…
1
vote
0 answers

Github Actions - Write access to repository is not granted

The problem I have a private repository that I am trying to add python-semantic-release to the GitHub Actions. When trying to increment the version number, I am getting the error that I don't have write access to the repository. I have used the…
1
vote
1 answer

`API_TOKEN_GITHUB` not recognized with `copy_file_to_another_repo_action` GitHub workflow

I am using the copy_file_to_another_repo_action GitHub workflow from dmnemec (https://github.com/dmnemec/copy_file_to_another_repo_action) to push a file from one repo that I own to another repo that I own (here is my workflow). The workflow…
rempsyc
  • 785
  • 5
  • 24
1
vote
1 answer

Coveralls 422: `Couldn't find a repository matching this job. `

I have just configured this repo to use coveralls actions as a coverage badge, created the secret as in the image below: And as you can see in here, I am using the correct secret. However, everytime I run this job I get the response Bad response:…
João Casarin
  • 674
  • 2
  • 9
  • 27
1
vote
1 answer

GitHub Actions - Best Way to Reuse Secrets for Multiple Repositories

GitHub Enterprise with thousands of repos in the organization. My team has (currently) 15 repos and all need the same secrets. Is there a way to "centralize" these secrets so I won't have to create/update these secrets in each repo…
Mickey Cohen
  • 997
  • 7
  • 23
1
vote
1 answer

node and github secrets. how to test locally

i'm using node and github actions for a simple twitter api script. twitter credentials are stored in github secrets other than hard coding the twitter credentials and then changing the code to use secrets before pushing to github how do i test…
dgk112
  • 111
  • 1
1
vote
1 answer

Why is gatsby-plugin-google-gtag not working in Gatsby with the Measurement ID?

With Gatsby 4.18.0 I've added the plugin gatsby-plugin-google-gtag and in Google Analytics I've created a Property. After selecting Web I'm prompted with: STREAM NAME: Foo Bar STREAM URL: https://foorbar.com STREAM ID: ########### MEASUREMENT ID:…
1
vote
1 answer

How to pass a parameterized secret to a reusable GitHub Action workflow?

I am running into an issue wherein I cannot make a part of my workflow reusable. Here is the gist of it deploy_app1: name: Deploy App1 / Production uses: ./.github/workflows/_deploy.yaml needs: validate if: ${{…
Christian Ivicevic
  • 10,071
  • 7
  • 39
  • 74
1
vote
0 answers

How to deploy a flutter web app on github that is using a .env without creating a security breach?

I have a flutter web app and I want to deploy it on github pages. But my app use an .env (which contains an api key) I pushed it encrypted with git secret. To use github actions I use multiple secrets to replace the .env but I still cannot deploy…
1
vote
1 answer

Access GitHub Secrets in local env file

Is there a way to access GitHub secrets in a local env file? So instead of having a secret saved directly in the env file it would reference a GitHub secret. I've seen that the GitHub secrets can be used within a workflow but I mainly just need to…
1
vote
1 answer

Github Actions Secrets: value not updating after changing it on Github UI

I have some github workflows using secrets in the repository. I created the secret, but I used the wrong value for it so I went on the website again and updated the value to a different string. It seems though that no matter what I do, the value…