-
Notifications
You must be signed in to change notification settings - Fork 280
48 lines (37 loc) · 1.44 KB
/
fossa.yml
File metadata and controls
48 lines (37 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: FOSSA scanning
on:
push:
branches:
- main
permissions:
contents: read
jobs:
fossa:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Ruby
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
ruby-version: 3.4.8
- name: Generate Gemfile.lock
run: |
echo "Finding all Gemfiles in the project..."
echo "======================================="
ORIGINAL_DIR=$(pwd)
find . -type f -name "Gemfile" -not -path "*/example/*" | sort | while read gemfile; do
gemfile_dir=$(dirname "$gemfile")
# Change to the Gemfile's directory
echo "Changing to directory: $gemfile_dir"
cd "$gemfile_dir" || continue
echo "Current directory: $(pwd)"
echo "Creating lock file for: $gemfile"
# Generate the Gemfile.lock files
bundle lock || echo "Warning: Failed to generate lock file for $gemfile, continuing..."
cd "$ORIGINAL_DIR" || exit 1
done
- uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
with:
api-key: ${{secrets.FOSSA_API_KEY}}
team: OpenTelemetry