File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ jobs:
157157 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
158158 # Figure out a way to allow course-specific environment variables
159159 CODECRAFTERS_SECRET_OPENROUTER_API_KEY : ${{ secrets.CODECRAFTERS_SECRET_OPENROUTER_API_KEY }}
160+ OPENROUTER_API_KEY : ${{ secrets.OPENROUTER_API_KEY }}
161+ OPENROUTER_BASE_URL : ${{ secrets.OPENROUTER_BASE_URL }}
160162
161163 validate-schemas :
162164 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export default class BaseTester {
113113 protected getCodecraftersSecretEnvFlags ( ) : string [ ] {
114114 const flags : string [ ] = [ ] ;
115115 for ( const [ key , value ] of Object . entries ( process . env ) ) {
116- if ( key . startsWith ( "CODECRAFTERS_SECRET_" ) && value !== undefined ) {
116+ if ( ( key . startsWith ( "CODECRAFTERS_SECRET_" ) || key . startsWith ( "OPENROUTER" ) ) && value !== undefined ) {
117117 // Escape single quotes in the value by replacing ' with '\''
118118 const escapedValue = value . replace ( / ' / g, "'\\''" ) ;
119119 flags . push ( `-e ${ key } ='${ escapedValue } '` ) ;
You can’t perform that action at this time.
0 commit comments