Closed jreimone closed 1 year ago
Thanks for the report!
We haven't seen this so far, but getting right to it :)
Can you tell which version of eco-ci you are using and which Mandatory and Optional Variables you have set? (https://github.com/green-coding-berlin/eco-ci-energy-estimation#github-action-mandatory-and-optional-variables)
@dan-mm Can you please take over
Also follow up question: Are you using the github default runner, or a self hosted runner?
I use a default runner and v2 of the action (see screenshot). As of the variables I only set the task
variable which you can also see in the linked public PR (where it doesn't fail).
Thanks for the report! Taking a look now
If this is a private repo, you need to give your actions read permissions (outlined in the ReadMe here: https://github.com/green-coding-berlin/eco-ci-energy-estimation#note-on-private-repos). You can set this on a per-job level:
test:
runs-on: ubuntu-latest
permissions:
actions: read
steps:
- name: Eco CI - Initialize
uses: green-coding-berlin/eco-ci-energy-estimation@v1
with:
task: start-measurement
do you have that set / still see this issue after setting it?
@jreimone - are you still experiencing this issue?
Closed because of no response
Sorry for the veeeeeeeryyyyy late follow-up here 😬 I just tried it out again. I can confirm that the error doesn't occur anymore 👍 But setting the permissions to read
as you suggested here didn't work. Activating it let my checkout
step fail in the private repo. Deleting the following lines was successful then.
permissions:
actions: read
hey @jreimone : Can you state which version of the Action you are using?
uses: green-coding-berlin/eco-ci-energy-estimation@v2
@dan-mm Can you have a look into this
In my private repo the following step fails:
Here is an excerpt of the log I see from the run:
Unfortunately, I couldn't reproduce it in my public repo in this PR. I know it's hard, but maybe you have an idea what the issue can be?