Skip to content

Commit 8a76cf3

Browse files
authored
Add fossa and mend with workflow_dispatch only (#1523)
### Proposed changes Add fossa and mend with workflow_dispatch only ### Checklist Before creating a PR, run through this checklist and mark each step as complete. - [x] I have read the [`CONTRIBUTING`](https://github.com/nginxinc/docs/blob/main/CONTRIBUTING.md) document - [x] I have viewed my changes in the documentation Deploy Preview - [x] My PR is targeting the correct branch: - main: content that can be released immediately - product release branch: content that should be held for a future release - [x] I have updated any relevant supporting documentation ([`README.md`](https://github.com/nginxinc/docs/blob/main/README.md) and the [`CHANGELOG.md`](https://github.com/nginxinc/docs/blob/main/CHANGELOG.md)) - [x] I have followed the [conventional commits guidelines](https://www.conventionalcommits.org/en/v1.0.0/#summary) for all commits on my branch When you're ready to merge a PR, run through this checklist and mark each step as complete. - [x] Review the doc for spelling errors. - [x] Verify that all links in the doc work. - [x] Verify that the doc follows the appropriate content template. - [x] Add technical and docs reviewers. Refer to the appropriate CODEOWNERS file, which includes authorized teams of reviewers. - [x] Share the PR for review in the [`#nginx-doc-reviews`](https://f5.enterprise.slack.com/archives/C04PYFULN91) channel in Slack.
1 parent b8eb9eb commit 8a76cf3

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

.github/workflows/fossa.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Fossa
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
type: string
8+
required: false
9+
default: main
10+
11+
concurrency:
12+
group: ${{ github.ref_name }}-fossa
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
scan:
20+
name: Fossa
21+
runs-on: ubuntu-24.04
22+
if: ${{ github.event.repository.fork == false }}
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
27+
- name: Scan
28+
uses: fossas/fossa-action@09bcf127dc0ccb4b5a023f6f906728878e8610ba # v1.4.0
29+
with:
30+
api-key: ${{ secrets.FOSSA_TOKEN }}

.github/workflows/mend.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Mend
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
type: string
8+
required: false
9+
default: main
10+
11+
concurrency:
12+
group: ${{ github.ref_name }}-mend
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
scan:
20+
name: Mend
21+
runs-on: ubuntu-24.04
22+
steps:
23+
- name: Checkout Repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
ref: ${{ inputs.branch && inputs.branch || github.ref }}
27+
28+
- name: Download agent
29+
run: curl -fsSLJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
30+
31+
- name: Verify JAR
32+
run: jarsigner -verify wss-unified-agent.jar
33+
34+
- name: Scan and upload
35+
env:
36+
PRODUCT_NAME: nginx_documentation_${{ inputs.branch && inputs.branch || github.ref_name }}
37+
PROJECT_NAME: nic
38+
run: java -jar wss-unified-agent.jar -noConfig true -wss.url ${{ secrets.WSS_URL }} -apiKey ${{ secrets.WSS_NGINX_TOKEN }} -product $PRODUCT_NAME -project $PROJECT_NAME -d .

0 commit comments

Comments
 (0)