Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test sca/stc scan #1474

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
60e1c25
Create code_scan.yml
huqiuxiang Aug 22, 2024
a030b64
Delete .github/workflows/code_scan.yml
huqiuxiang Aug 22, 2024
05e3630
Create fossa_scan.yml
huqiuxiang Aug 23, 2024
bc4322a
Delete .github/workflows/maven.yml
huqiuxiang Aug 23, 2024
4d0cde0
Delete .github/workflows/release.yml
huqiuxiang Aug 23, 2024
e2ebb52
Delete .github/workflows/cloud_code_scan.yml
huqiuxiang Aug 23, 2024
f5ec55e
Create test_hqx
huqiuxiang Aug 23, 2024
3a67d94
Update fossa_scan.yml
huqiuxiang Aug 23, 2024
56dcbf5
Create cloud_code_scan.yml
huqiuxiang Aug 27, 2024
98e5292
Update pom.xml
huqiuxiang Aug 27, 2024
644e311
Update cloud_code_scan.yml
huqiuxiang Aug 27, 2024
66fea25
Update pom.xml
huqiuxiang Aug 27, 2024
5fa0918
Create soos_scan.yml
huqiuxiang Aug 27, 2024
ddb5656
Create sonarqube_scan.yml
huqiuxiang Sep 14, 2024
d80768f
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
80fcd0e
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
01ec5b5
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
a22b07c
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
7b913fc
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
bd64164
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
c7448fd
fix java version11
huqiuxiang Sep 14, 2024
1a5bac0
Merge remote-tracking branch 'origin/master'
huqiuxiang Sep 14, 2024
c30f05e
Update sonarqube_scan.yml
huqiuxiang Sep 14, 2024
9749ea5
fix java version11
huqiuxiang Sep 14, 2024
32ba2d6
Merge remote-tracking branch 'origin/master'
huqiuxiang Sep 14, 2024
2dfb375
Update pom.xml
huqiuxiang Dec 30, 2024
6b6e088
Update cloud_code_scan.yml
huqiuxiang Dec 30, 2024
4b21d83
Update pom.xml
huqiuxiang Dec 30, 2024
5feab42
Update pom.xml
huqiuxiang Dec 30, 2024
383fdb6
Update pom.xml
huqiuxiang Dec 30, 2024
c5b1ac1
Update pom.xml
huqiuxiang Dec 30, 2024
e36c82a
Update pom.xml
huqiuxiang Dec 30, 2024
a56922f
Update pom.xml
huqiuxiang Dec 30, 2024
56a7685
Update pom.xml
huqiuxiang Dec 30, 2024
0c68d84
Update pom.xml
huqiuxiang Dec 30, 2024
cf9b7db
Update pom.xml
huqiuxiang Dec 30, 2024
6183eab
Update pom.xml
huqiuxiang Dec 30, 2024
e625a23
Update cloud_code_scan.yml
huqiuxiang Dec 30, 2024
9a8bbc8
Update pom.xml
huqiuxiang Dec 30, 2024
03696e8
Update cloud_code_scan.yml
huqiuxiang Jan 2, 2025
a31f052
Update cloud_code_scan.yml
huqiuxiang Jan 2, 2025
276c15f
Update pom.xml
huqiuxiang Jan 2, 2025
4d213a6
Update pom.xml
huqiuxiang Jan 2, 2025
f1d8100
Update cloud_code_scan.yml
huqiuxiang Feb 7, 2025
68a61c8
Update pom.xml
huqiuxiang Feb 7, 2025
691b5db
Update pom.xml
huqiuxiang Feb 7, 2025
0fdf260
Update pom.xml
huqiuxiang Feb 10, 2025
455ef76
Update README.md
huqiuxiang Feb 10, 2025
c7b9ebd
Update pom.xml
huqiuxiang Feb 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/cloud_code_scan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Alipay Cloud Devops Codescan
on:
pull_request_target:
push:
branches: [ master ]
pull_request:
branches: [ master ]

#pull_request_target:
jobs:
stc: #安全扫描
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/fossa_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: FOSSA Scan

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
fossa:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Run FOSSA Scan
uses: fossa-contrib/fossa-action@v1
with:
fossa-api-key: ${{ secrets.FOSSA_API_KEY }}
# 可选:指定FOSSA命令行参数,例如目录、排除等
# args: '--exclude=**/node_modules,**/vendor'
32 changes: 0 additions & 32 deletions .github/workflows/maven.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/release.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/sonarqube_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: sonarqube scan
on:
push:
branches: [ master ]
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'

# 如果是Maven
- name: Build and analyze with Maven
run: mvn clean verify sonar:sonar -Dmaven.test.skip=true -Dsonar.projectKey=${{ github.event.repository.name }} -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/soos_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This is a basic workflow to help you get started with Actions
name: SOOS SCA SARIF Example CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: SOOS SCA Analysis
uses: soos-io/soos-sca-github-action@v2
with:
project_name: "<repository_owner>/<repository_name>" # Also you can use the var ${{ github.repository }}
output_format: "sarif"
client_id: ${{ secrets.SOOS_CLIENT_ID }}
api_key: ${{ secrets.SOOS_API_KEY }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ Runtime requirement: JDK 8 or above.

## License

##test

SOFARPC is licensed under the [Apache License 2.0](https://github.com/sofastack/sofa-rpc/blob/master/LICENSE), and SOFARPC uses some third-party components, you can view their open source license here [NOTICE](https://www.sofastack.tech/sofa-rpc/docs/NOTICE?lang=en).
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@
<url>http://www.antfin.com/</url>
</organization>















<modules>
<!-- ALl-in-one -->
<module>all</module>
Expand Down Expand Up @@ -51,6 +65,19 @@
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>

<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
4 changes: 4 additions & 0 deletions registry/registry-local/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<artifactId>sofa-rpc-registry-local</artifactId>

<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>com.alipay.sofa</groupId>
<artifactId>sofa-rpc-log</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions remoting/remoting-triple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<groupId>com.alipay.sofa</groupId>
<artifactId>sofa-rpc-log</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>com.alipay.sofa</groupId>
<artifactId>sofa-rpc-api</artifactId>
Expand Down
1 change: 1 addition & 0 deletions test_hqx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
Loading