Skip to content

Commit

Permalink
Add GITHUB_ to ALLOWED_ENV_PREFIXES (#323)
Browse files Browse the repository at this point in the history
* Add GITHUB_ to ALLOWED_ENV_PREFIXES

* Drop trailing comma

* Add missing dist build
  • Loading branch information
mnaser authored Feb 22, 2025
1 parent cb02947 commit 158abfe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
17 changes: 9 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11574,21 +11574,22 @@ const TARGET_ALIASES = {
}
};
const ALLOWED_ENV_PREFIXES = [
'ACTIONS_',
'CARGO_',
'RUST',
'MATURIN_',
'PYO3_',
'TARGET_',
'CMAKE_',
'CC',
'CFLAGS',
'CMAKE_',
'CPPFLAGS',
'CXX',
'CXXFLAGS',
'CPPFLAGS',
'GITHUB_',
'JEMALLOC_',
'LDFLAGS',
'ACTIONS_',
'MATURIN_',
'PYO3_',
'RUST',
'SCCACHE_',
'JEMALLOC_'
'TARGET_'
];
const FORBIDDEN_ENVS = ['CARGO_HOME'];
function hasZigSupport(target) {
Expand Down
17 changes: 9 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,22 @@ const TARGET_ALIASES: Record<string, Record<string, string>> = {
* Allowed prefixes for env variables to pass to docker
*/
const ALLOWED_ENV_PREFIXES: string[] = [
'ACTIONS_',
'CARGO_',
'RUST',
'MATURIN_',
'PYO3_',
'TARGET_',
'CMAKE_',
'CC',
'CFLAGS',
'CMAKE_',
'CPPFLAGS',
'CXX',
'CXXFLAGS',
'CPPFLAGS',
'GITHUB_',
'JEMALLOC_',
'LDFLAGS',
'ACTIONS_',
'MATURIN_',
'PYO3_',
'RUST',
'SCCACHE_',
'JEMALLOC_'
'TARGET_'
]

/**
Expand Down

0 comments on commit 158abfe

Please sign in to comment.