Skip to content

Pipelines not being able to use Eco CI token #1101

@ArneTR

Description

@ArneTR

At the moment when we get external PRs the secrects cannot be used.

However we store Eco CI API credentials and also Electricitymaps tokens in the secrets and want to track carbon emissions also for external PRs.

What I did:

  • Moved pipelines to pull_request_target instead of pull_request
    • This helped with access to the secrets.
    • However now always main was checked out as github.ref was always main. This can be fixed, but ...
    • Now once given permissions to run Github actions the pipeline would ALWAYS run when a new push was done. this is a security issue. We would need that the pipeline runs only once and needs permissions for every new commit

Or we find another way to use the secrets ...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions