Skip to content

Commit e5bc337

Browse files
committed
chore: Update role to latest NGINX best practices
1 parent 0cb89b4 commit e5bc337

File tree

14 files changed

+164
-105
lines changed

14 files changed

+164
-105
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
name: 🐛 Bug report
3+
description: Create a report to help us improve
4+
labels: bug
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
11+
Before you continue filling out this report, please take a moment to check that your bug has not been [already reported on GitHub][issue search] 🙌
12+
13+
Remember to redact any sensitive information such as authentication credentials and/or license keys!
14+
15+
**Note:** If you are seeking community support or have a question, please consider starting a new thread via [GitHub discussions][discussions] or the [NGINX Community forum][forum].
16+
17+
[issue search]: ../search?q=is%3Aissue&type=issues
18+
19+
[discussions]: ../discussions
20+
[forum]: https://community.nginx.org
21+
22+
- type: textarea
23+
id: overview
24+
attributes:
25+
label: Bug Overview
26+
description: A clear and concise overview of the bug.
27+
placeholder: When I do "X" with the NGINX Ansible role, "Y" happens instead of "Z".
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: behavior
33+
attributes:
34+
label: Expected Behavior
35+
description: A clear and concise description of what you expected to happen.
36+
placeholder: When I do "X" with the NGINX Ansible role, I expect "Z" to happen.
37+
validations:
38+
required: true
39+
40+
- type: textarea
41+
id: steps
42+
attributes:
43+
label: Steps to Reproduce the Bug
44+
description: Detail the series of steps required to reproduce the bug.
45+
value: |
46+
1. I have deployed/run the NGINX Ansible role using the following `playbook.yml`...
47+
2. I have seen the following error(s) on my terminal/logs...
48+
validations:
49+
required: true
50+
51+
- type: textarea
52+
id: environment
53+
attributes:
54+
label: Environment Details
55+
description: Please provide details about your environment.
56+
value: |
57+
- Target deployment platforms: [e.g. AWS/GCP/local cluster/etc...]
58+
- Target OSs: [e.g. RHEL 9/Ubuntu 24.04/etc...]
59+
- Host OS (where you are running Ansible from): [e.g. RHEL 9/Ubuntu 24.04/etc...]
60+
- Version of the NGINX Ansible role (or specific commit): [e.g. 0.25.0/commit hash]
61+
- Version of Ansible: [e.g. 2.16.5]
62+
- How is Ansible being managed: [e.g. CLI/pipeline/Automation Hub/etc...]
63+
- Version of Jinja2 (if you are using any templating capability): [e.g. 3.1.1]
64+
validations:
65+
required: true
66+
67+
- type: textarea
68+
id: context
69+
attributes:
70+
label: Additional Context
71+
description: Add any other context about the problem here.
72+
placeholder: Feel free to add any other context/information/screenshots/etc... that you think might be relevant to this issue in here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
blank_issues_enabled: false
3+
contact_links:
4+
- name: 💬 Talk to the NGINX community!
5+
url: https://community.nginx.org
6+
about: A community forum for NGINX users, developers, and contributors
7+
- name: 📝 Code of Conduct
8+
url: https://www.contributor-covenant.org/version/2/1/code_of_conduct
9+
about: NGINX follows the Contributor Covenant Code of Conduct to ensure a safe and inclusive community
10+
- name: 💼 For commercial & enterprise users
11+
url: https://www.f5.com/products/nginx
12+
about: F5 offers a wide range of NGINX products for commercial & enterprise users

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: ✨ Feature request
3+
description: Suggest an idea for this project
4+
labels: enhancement
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this feature request!
10+
11+
Before you continue filling out this request, please take a moment to check that your feature has not been [already requested on GitHub][issue search] 🙌
12+
13+
**Note:** If you are seeking community support or have a question, please consider starting a new thread via [GitHub discussions][discussions] or the [NGINX Community forum][forum].
14+
15+
[issue search]: ../search?q=is%3Aissue&type=issues
16+
17+
[discussions]: ../discussions
18+
[forum]: https://community.nginx.org
19+
20+
- type: textarea
21+
id: overview
22+
attributes:
23+
label: Feature Overview
24+
description: A clear and concise description of what the feature request is.
25+
placeholder: I would like the NGINX Ansible role to be able to do "X".
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: alternatives
31+
attributes:
32+
label: Alternatives Considered
33+
description: Detail any potential alternative solutions/workarounds you've used or considered.
34+
placeholder: I have done/might be able to do "X" in the NGINX Ansible role by doing "Y".
35+
36+
- type: textarea
37+
id: context
38+
attributes:
39+
label: Additional Context
40+
description: Add any other context about the problem here.
41+
placeholder: Feel free to add any other context/information/screenshots/etc... that you think might be relevant to this feature request here.

.github/scorecard.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
annotations:
3+
- checks:
4+
- contributors
5+
- fuzzing
6+
- packaging
7+
- sast
8+
- signed-releases
9+
reasons:
10+
- reason: not-applicable

.github/workflows/f5-cla.yml renamed to .github/workflows/f5_cla.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,21 @@ jobs:
1919
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have hereby read the F5 CLA and agree to its terms') || github.event_name == 'pull_request_target'
2020
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
2121
with:
22-
# Any pull request targeting the following branch will trigger a CLA check.
23-
branch: main
2422
# Path to the CLA document.
25-
path-to-document: https://github.com/f5/.github/blob/main/CLA/cla-markdown.md
23+
path-to-document: https://github.com/f5/f5-cla/blob/main/docs/f5_cla.md
2624
# Custom CLA messages.
27-
custom-notsigned-prcomment: '🎉 Thank you for your contribution! It appears you have not yet signed the F5 Contributor License Agreement (CLA), which is required for your changes to be incorporated into an F5 Open Source Software (OSS) project. Please kindly read the [F5 CLA](https://github.com/f5/.github/blob/main/CLA/cla-markdown.md) and reply on a new comment with the following text to agree:'
25+
custom-notsigned-prcomment: '🎉 Thank you for your contribution! It appears you have not yet signed the [F5 Contributor License Agreement (CLA)](https://github.com/f5/f5-cla/blob/main/docs/f5_cla.md), which is required for your changes to be incorporated into an F5 Open Source Software (OSS) project. Please kindly read the [F5 CLA](https://github.com/f5/f5-cla/blob/main/docs/f5_cla.md) and reply on a new comment with the following text to agree:'
2826
custom-pr-sign-comment: 'I have hereby read the F5 CLA and agree to its terms'
2927
custom-allsigned-prcomment: '✅ All required contributors have signed the F5 CLA for this PR. Thank you!'
3028
# Remote repository storing CLA signatures.
3129
remote-organization-name: f5
3230
remote-repository-name: f5-cla-data
31+
# Branch where CLA signatures are stored.
32+
branch: main
3333
path-to-signatures: signatures/signatures.json
3434
# Comma separated list of usernames for maintainers or any other individuals who should not be prompted for a CLA.
35-
allowlist: alessfg, oxpa, bot*
35+
# NOTE: You will want to edit the usernames to suit your project needs.
36+
allowlist: bot*
3637
# Do not lock PRs after a merge.
3738
lock-pullrequest-aftermerge: false
3839
env:
File renamed without changes.

.github/workflows/ossf-scorecard.yml renamed to .github/workflows/ossf_scorecard.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ name: OSSF Scorecard
44
on:
55
# For Branch-Protection check. Only the default branch is supported. See https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection.
66
branch_protection_rule:
7-
push:
8-
branches: [main]
97
# To guarantee Maintained check is occasionally updated. See https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained.
108
schedule:
119
- cron: "0 0 * * 1"
10+
push:
11+
branches: [main]
1212
workflow_dispatch:
1313
# Declare default permissions as read only.
1414
permissions: read-all
@@ -17,16 +17,10 @@ jobs:
1717
name: Scorecard analysis
1818
runs-on: ubuntu-24.04
1919
permissions:
20-
# Needed if using Code Scanning alerts
20+
# Needed if using Code Scanning alerts.
2121
security-events: write
22-
# Needed for GitHub OIDC token if publish_results is true
22+
# Needed for GitHub OIDC token if publish_results is true.
2323
id-token: write
24-
# Uncomment the permissions below if installing on a private repository.
25-
# contents: read
26-
# actions: read
27-
# issues: read # To allow GraphQL ListCommits to work
28-
# pull-requests: read # To allow GraphQL ListCommits to work
29-
# checks: read # To detect SAST tools
3024
steps:
3125
- name: Check out the codebase
3226
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -38,14 +32,7 @@ jobs:
3832
with:
3933
results_file: results.sarif
4034
results_format: sarif
41-
# (Optional) fine-grained personal access token. Uncomment the `repo_token` line below if:
42-
# - You want to enable the Branch-Protection check on a *public* repository.
43-
# - You are installing the OSSF Scorecard on a *private* repository.
44-
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-fine-grained-pat-optional.
45-
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
46-
4735
# Publish the results for public repositories to enable scorecard badges. For more details, see https://github.com/ossf/scorecard-action#publishing-results.
48-
# For private repositories, `publish_results` will automatically be set to `false`, regardless of the value entered here.
4936
publish_results: true
5037

5138
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF format to the repository Actions tab.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ BUG FIXES:
1111
- Fix Ansible and Jinja versions validation tasks in ansible check mode.
1212
- Correctly use the `nginx_version` (if defined) for NGINX module versions.
1313

14+
DOCUMENTATION:
15+
16+
- Update community files and best practices/required workflows (CLA & OSSF scorecard) to the latest versions.
17+
1418
## 0.25.0 (Nov 28, 2024)
1519

1620
BREAKING CHANGES:

0 commit comments

Comments
 (0)