Skip to content

Commit e6ba0d5

Browse files
committed
DBACLD-151564 - Put in place tooling
1 parent f589b57 commit e6ba0d5

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed

.github/workflows/check-links.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check Markdown links
2+
3+
#on:
4+
# push:
5+
# branches:
6+
# - master
7+
# pull_request:
8+
# branches: [master]
9+
on: push
10+
jobs:
11+
markdown-link-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: technote-space/get-diff-action@v6
16+
with:
17+
PATTERNS: |
18+
**/**.md
19+
20+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
21+
with:
22+
use-quiet-mode: 'yes'
23+
use-verbose-mode: 'yes'
24+
config-file: '.md_check_config.json'
25+

.github/workflows/detect-secrets.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: detect secrets
2+
3+
on: push
4+
5+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
6+
jobs:
7+
# This workflow contains a single job called "detect-secrets"
8+
detect-secrets:
9+
runs-on: ubuntu-latest
10+
11+
# Steps represent a sequence of tasks that will be executed as part of the job
12+
steps:
13+
14+
# Checks-out your repository under ${{github.workspace}}, so your job can access it
15+
- uses: actions/checkout@v4
16+
17+
- name: scan all the files (not just the ones committed), generate a report, and check that there are no actual or potential secret
18+
run: |
19+
docker run --pull=always -a stdout \
20+
-v ${{github.workspace}}:/code \
21+
--entrypoint /bin/sh \
22+
icr.io/git-defenders/detect-secrets:0.13.1.ibm.61.dss-redhat-ubi \
23+
-c "detect-secrets --version;
24+
detect-secrets scan --all-files --exclude-files "^.git/.*" --update .secrets.baseline;
25+
detect-secrets audit --report --fail-on-unaudited --fail-on-live --fail-on-audited-real .secrets.baseline"
26+
27+
- name: Report Status
28+
if: always()
29+
uses: ravsamhq/notify-slack-action@master
30+
with:
31+
status: ${{ job.status }}
32+
notify_when: 'failure'
33+
env:
34+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/stale.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v8
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)