Skip to content

fix(scorecards): Move env variable to individual steps - #713

Merged
javirln merged 1 commit into
mainfrom
fix/platform-706
Apr 26, 2024
Merged

fix(scorecards): Move env variable to individual steps#713
javirln merged 1 commit into
mainfrom
fix/platform-706

Conversation

@javirln

@javirln javirln commented Apr 26, 2024

Copy link
Copy Markdown
Member

Scorecard action is complaining about top level env vars in a production workflow, aka: a workflow running on the default branch on the repository.

2024/04/26 11:42:48 error sending scorecard results to webapp: http response 400, status: 400 Bad Request, error: {"code":400,"message":"workflow verification failed: scorecard job contains env vars, see https://github.com/ossf/scorecard-action#workflow-restrictions for details."}
2024/04/26 11:42:48 retrying in 1s...
2024/04/26 11:42:50 error sending scorecard results to webapp: http response 400, status: 400 Bad Request, error: {"code":400,"message":"workflow verification failed: scorecard job contains env vars, see https://github.com/ossf/scorecard-action#workflow-restrictions for details."}
2024/04/26 11:42:50 retrying in 3s...
2024/04/26 11:42:53 error sending scorecard results to webapp: http response 400, status: 400 Bad Request, error: {"code":400,"message":"workflow verification failed: scorecard job contains env vars, see https://github.com/ossf/scorecard-action#workflow-restrictions for details."}
2024/04/26 11:42:53 retrying in 10s...
2024/04/26 11:43:03 error processing signature: error sending scorecard results to webapp: http response 400, status: 400 Bad Request, error: {"code":400,"message":"workflow verification failed: scorecard job contains env vars, see https://github.com/ossf/scorecard-action#workflow-restrictions for details."}

To overrun this, let's move the env to the steps that needs them, removing the top level dependency.

Refers to #706

Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
@javirln
javirln requested review from jiparis and migmartri April 26, 2024 11:50
@javirln javirln self-assigned this Apr 26, 2024

@migmartri migmartri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@javirln
javirln merged commit b5726b4 into main Apr 26, 2024
@javirln
javirln deleted the fix/platform-706 branch April 26, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants