Skip to content

Commit d46f079

Browse files
authored
Java Wrapper | Fix SAST & IAC Vul + ThresholdAST-47965) (#350)
* first attempt fix vul ci.yml * fix vul * fix meduim vul * add Threshold and fix all vul * fix pr
1 parent cedad3f commit d46f079

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
distribution: 'temurin'
3737
java-version: '11'
3838
server-id: ossrh
39-
server-username: MAVEN_USERNAME
40-
server-password: MAVEN_PASSWORD
39+
server-username: ${{ secrets.OSSRH_USERNAME }}
40+
server-password: ${{ secrets.OSSRH_TOKEN }}
4141
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
4242
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4343

@@ -76,6 +76,6 @@ jobs:
7676

7777
- name: Run SpotBugs Analysis
7878
if: ${{ github.actor != 'dependabot[bot]' }}
79-
uses: jwgmeligmeyling/spotbugs-github-action@master
79+
uses: jwgmeligmeyling/spotbugs-github-action@b8e2c3523acb34c87f14e18cbcd2d87db8c8584e #v1.2
8080
with:
8181
path: '**/spotbugsXml.xml'

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Dependabot metadata
1313
id: metadata
14-
uses: dependabot/[email protected]
14+
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 #v2.2.0
1515
with:
1616
github-token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
1717
- name: Enable auto-merge for Dependabot PRs
@@ -20,6 +20,6 @@ jobs:
2020
GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN }}
2121
run: gh pr merge --auto --merge "$PR_URL"
2222
- name: Auto approve dependabot PRs
23-
uses: hmarr/auto-approve-action@v4
23+
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 #v4
2424
with:
2525
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Delete release
13-
uses: dev-drprasad/[email protected]
13+
uses: dev-drprasad/delete-tag-and-release@8cd619d00037e4aeb781909c9a6b03940507d0da # v1.0.1
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
with:

.github/workflows/pr-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: TimonVS/pr-labeler-action@v5
15+
- uses: TimonVS/pr-labeler-action@f9c084306ce8b3f488a8f3ee1ccedc6da131d1af #v5
1616
with:
1717
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
1818
env:

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ jobs:
7373
java-version: '11'
7474
distribution: 'temurin'
7575
server-id: ossrh
76-
server-username: MAVEN_USERNAME
77-
server-password: MAVEN_PASSWORD
76+
server-username: ${{ secrets.OSSRH_USERNAME }}
77+
server-password: ${{ secrets.OSSRH_TOKEN }}
7878
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
7979
gpg-passphrase: MAVEN_GPG_PASSPHRASE
8080

@@ -97,7 +97,7 @@ jobs:
9797
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
9898

9999
- name: Release
100-
uses: softprops/action-gh-release@v2
100+
uses: softprops/action-gh-release@a6c7483a42ee9d5daced968f6c217562cd680f7f #v2
101101
with:
102102
generate_release_notes: true
103103
tag_name: ${{ inputs.tag }}

.github/workflows/update-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
5959
- name: Create Pull Request
6060
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
61-
uses: peter-evans/create-pull-request@v6
61+
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 #v6
6262
with:
6363
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
6464
commit-message: Update checkmarx-ast-cli to ${{ steps.checkmarx-ast-cli.outputs.release_tag }}

0 commit comments

Comments
 (0)