Skip to content

Commit 36babaf

Browse files
committed
Naming/documentation
1 parent 601c300 commit 36babaf

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/workflows/scan-for-secrets.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,17 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Add PR to project
15+
# This reusable workflow is used to scan for secrets; API keys for various
16+
# services that shouldn't be made public but instead ought to be handled
17+
# via the Github Secrets mechanisms.
18+
#
19+
# It needs no elevated permissions, and no access to real secrets.
20+
#
21+
# It uses the file secrets.baseline.json in the same directory as this
22+
# workflow to provide a baseline configuration when the user does not
23+
# specify their own.
24+
25+
name: Scan for Secrets
1626
on:
1727
workflow_call:
1828
inputs:
@@ -32,7 +42,7 @@ on:
3242
3343
jobs:
3444
check:
35-
name: Checking for Secrets
45+
name: Checking for Service API Keys
3646
runs-on: ubuntu-latest
3747
steps:
3848
- name: Checkout
@@ -43,7 +53,7 @@ jobs:
4353
path: .uomrit-actions
4454
repository: UoMResearchIT/actions
4555
ref: add-secret-scanning # FIXME
46-
- name: Scan for Secrets
56+
- name: Scan
4757
uses: secret-scanner/action@0.2.1
4858
with:
4959
# Version locked because of bugs

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ These are intended for use in many types of project, wherever relevant.
1717

1818
* [`instantiate-file`](instantiate-file) creates a file with a value provided by your workflow.
1919

20-
* ['add_prs_to_project (reusable workflow)](.github/workflows/add_prs_to_project.yml) is a reusable workflow that you can use in your repository to add any PRs assigned to a user to a Project and set the Status in the project to a value of your choosing.
21-
2220
## Linux runners only
2321

2422
* [`apt-get-install`](apt-get-install) installs packages into Ubuntu runners, allowing for subtleties of installation that have been found to come up with some packages "in the wild".
@@ -29,6 +27,12 @@ These are intended for use in many types of project, wherever relevant.
2927

3028
* [`todo`](todo) finds `FIXME` and `TODO` comments in code.
3129

30+
## Reusable Workflows
31+
32+
* [`add_prs_to_project` (reusable workflow)](.github/workflows/add_prs_to_project.yml) is a reusable workflow that you can use in your repository to add any PRs assigned to a user to a Project and set the Status in the project to a value of your choosing.
33+
34+
* [`scan-for-secrets` (reusable workflow)](.github/workflows/scan-for-secrets.yml) is a reusable workflow that you can use in your repository to scan for API keys (e.g., for AWS) that your code accidentally exposes.
35+
3236
# Language-Specific Tools
3337

3438
These often have platform requirements for their runners. You can always have several jobs in a workflow to allow the use of Linux runners in an otherwise Windows-specific build scheme.

0 commit comments

Comments
 (0)