forked from aws-observability/aws-otel-java-instrumentation
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (64 loc) · 1.93 KB
/
owasp.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Daily scan for dependencies
on:
schedule:
- cron: "22 3 * * *"
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
check-dependencies-adot-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Build snapshot with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: ":otelagent:dependencyCheckAnalyze"
- name: Upload report
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: adot-dependencies
path: otelagent/build/reports
check-dependencies-otel-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: "open-telemetry/opentelemetry-java-instrumentation"
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Build snapshot with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: ":javaagent:dependencyCheckAnalyze"
- name: Upload report
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: otel-dependencies
path: javaagent/build/reports
publish-status:
needs: ["check-dependencies-adot-java", "check-dependencies-otel-java"]
if: ${{ always() }}
uses: ./.github/workflows/publish-status.yml
with:
namespace: 'ADOT/GitHubActions'
repository: ${{ github.repository }}
branch: ${{ github.ref_name }}
workflow: owasp
success: ${{ needs.check-dependencies-adot-java.result == 'success' &&
needs.check-dependencies-otel-java.result == 'success'}}
region: us-east-1
secrets:
roleArn: ${{ secrets.METRICS_ROLE_ARN }}