Skip to content

Commit

Permalink
Ignore vendor/cache directories
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 16, 2025
1 parent ae4c1e6 commit 67d0633
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/java-reachables-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ jobs:
run: |
echo "ATOM_RUBY_HOME: ${ATOM_RUBY_HOME}"
echo "BUNDLE_PATH: ${BUNDLE_PATH}"
atom --help
rbastgen --help
node $GITHUB_WORKSPACE/bin/cdxgen.js -p -t ruby --profile research -o bom.json . --lifecycle pre-build
ls -lh
cp bom.json *.slices.json $GITHUB_WORKSPACE/rubyresults
env:
CDXGEN_DEBUG_MODE: debug
ATOM_RUBY_HOME: ${{ steps.ruby34.outputs.ruby-prefix }}
BUNDLE_PATH: vendor/bundle
CDXGEN_GEM_HOME: vendor/bundle/ruby/3.3.0
working-directory: ./repotests/campsite/api
- uses: actions/upload-artifact@v4
with:
Expand Down
7 changes: 5 additions & 2 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5192,13 +5192,16 @@ export async function createRubyBom(path, options) {
exclude: excludeList,
},
);
const gemHome = process.env.CDXGEN_GEM_HOME || process.env.GEM_HOME;
let gemHome = process.env.CDXGEN_GEM_HOME || process.env.GEM_HOME;
if (!gemHome && (process.env.BUNDLE_PATH || process.env.GEM_PATH)) {
gemHome = process.env.BUNDLE_PATH || process.env.GEM_PATH;
}
let isGemHomeEmpty = true;
// In deep mode, let's collect all gems that got installed in our custom GEM_HOME directory.
// This would improve the accuracy of any security analysis downstream at cost of a slight increase in time.
if (options.deep && process.env.CDXGEN_GEM_HOME) {
const gemHomeSpecFiles = getAllFiles(
process.env.CDXGEN_GEM_HOME,
process.env.CDXGEN_GEM_HOME || process.env.BUNDLE_PATH,
"**/specifications/**/*.gemspec",
options,
);
Expand Down
2 changes: 1 addition & 1 deletion lib/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6321,7 +6321,7 @@ export function collectGemModuleNames(
}
if (DEBUG_MODE) {
console.log(
`Is ${altGemName} an alternative gem name for the package ${gemName}? Please let us know if this is the case.`,
`Is ${altGemName} an alternative gem name for '${gemName}' package? Please let us know if this is correct.`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/lib/cli/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 67d0633

Please sign in to comment.