Skip to content

Commit a530a2d

Browse files
authored
Merge branch 'main' into scam-detection-ai
2 parents 00bdbba + 1e02e89 commit a530a2d

File tree

223 files changed

+1602
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+1602
-308
lines changed

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Jekyll website",
3+
"image": "mcr.microsoft.com/devcontainers/jekyll:latest",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {
6+
"version": "22"
7+
},
8+
"ghcr.io/devcontainers/features/ruby:1": {
9+
"version": "3.3.5"
10+
}
11+
},
12+
"forwardPorts": [
13+
// Jekyll server
14+
4000,
15+
// Live reload server
16+
35729
17+
],
18+
"postCreateCommand": "bundle exec jekyll serve --incremental"
19+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### Please confirm this pull request meets the following requirements:
33

44
- [ ] I followed the contributing guidelines: <https://github.com/github/explore/blob/main/CONTRIBUTING.md>.
5-
- [ ] I am not the sole author or employee of a company who created either the topic I am modifying/adding or the collection entry I am modifying/adding.
5+
- [ ] This change is not self-promotion.
66

77
### Which change are you proposing?
88

.github/dependabot.yml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
1+
---
12
version: 2
23
updates:
3-
- package-ecosystem: github-actions
4+
- package-ecosystem: "github-actions"
45
directory: "/"
56
schedule:
6-
interval: daily
7-
time: "10:00"
8-
timezone: Europe/Vienna
9-
pull-request-branch-name:
10-
separator: "-"
7+
interval: "weekly"
8+
timezone: "America/Los_Angeles"
9+
labels:
10+
- "dependabot"
11+
- "dependencies"
12+
- "github-actions"
13+
commit-message:
14+
prefix: "chore(deps)"
1115
open-pull-requests-limit: 99
12-
rebase-strategy: disabled
16+
groups:
17+
dependencies:
18+
applies-to: version-updates
19+
update-types:
20+
- "minor"
21+
- "patch"
22+
- package-ecosystem: "bundler"
23+
directory: /
24+
schedule:
25+
interval: "weekly"
26+
timezone: "America/Los_Angeles"
27+
labels:
28+
- "dependabot"
29+
- "dependencies"
30+
- "bundler"
31+
commit-message:
32+
prefix: "chore(deps)"
33+
open-pull-requests-limit: 99
34+
groups:
35+
dependencies:
36+
applies-to: version-updates
37+
update-types:
38+
- "minor"
39+
- "patch"

.github/workflows/collections-renames.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,36 @@ name: Check and update renamed/removed collection items
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "0 * * * *" # every hour
6+
- cron: "0 * * * *" # every hour
7+
8+
permissions:
9+
contents: read
710

811
jobs:
912
update:
13+
permissions:
14+
pull-requests: write
15+
contents: write
1016
runs-on: ubuntu-latest
1117
if: github.repository_owner == 'github'
1218
steps:
13-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v4.2.2
1420

1521
- name: Setup Ruby
16-
uses: ruby/setup-ruby@v1
22+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
1723
with:
1824
bundler-cache: true
1925

20-
- name: Test collection with autofix and commit changes
21-
uses: technote-space/create-pr-action@v2
26+
- name: Test collections and modify with changes
2227
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2428
AUTOCORRECT_RENAMED_REPOS: 1
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: bundle exec rake collections
31+
32+
- name: Commit changes and open PR
33+
uses: peter-evans/create-pull-request@v7
2534
with:
26-
EXECUTE_COMMANDS: |
27-
bundle exec rake collections
28-
COMMIT_MESSAGE: '✨ Autofixing renamed/removed collection items ✨'
29-
COMMIT_NAME: 'GitHub Actions'
30-
COMMIT_EMAIL: '[email protected]'
31-
PR_BRANCH_NAME: 'update-collections-${PR_ID}'
32-
PR_TITLE: '✨ Autofixing renamed/removed collection items ✨'
35+
commit-message: "✨ Autofixing renamed/removed collection items ✨"
36+
committer: "github-actions[bot] <[email protected]>"
37+
branch: "update-collections-${PR_ID}"
38+
title: "✨ Autofixing renamed/removed collection items ✨"

.github/workflows/conflict.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ on:
44
pull_request:
55
merge_group:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
check:
912
runs-on: ubuntu-latest
1013
steps:
1114
- run: |
1215
echo "In order to review this pull request for acceptance, we need to make sure that all of the prerequisites are satisfied."
1316
echo "This was not checked:"
14-
echo "> I am not the sole author or employee of a company who created either the topic I am modifying/adding or the collection entry I am modifying/adding."
15-
echo "This is a requirement to maintain a high level of independence in this project. Please update if you are able to verify that you meet that requirement."
17+
echo "> This change is not self-promotion.
18+
echo "This is a requirement to maintain a high level of independence in this project. Please update to confirm there is no conflict of interest."
1619
echo "Thank you!"
1720
exit 1
18-
if: contains(github.event.pull_request.body, '- [ ] I am not the sole author or employee of a company who created either the topic I am modifying/adding or the collection entry I am modifying/adding.')
21+
if: contains(github.event.pull_request.body, '- [ ] This change is not self-promotion.')
1922
name: Fail
2023
- run: exit 0
21-
if: contains(github.event.pull_request.body, '- [x] I am not the sole author or employee of a company who created either the topic I am modifying/adding or the collection entry I am modifying/adding.')
24+
if: contains(github.event.pull_request.body, '- [x] This change is not self-promotion.')
2225
name: Succeed

.github/workflows/jekyll_build.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,42 @@ on:
88

99
permissions:
1010
contents: read
11-
pages: write
12-
id-token: write
13-
11+
1412
concurrency:
1513
group: "pages"
1614
cancel-in-progress: true
1715

1816
jobs:
1917
build:
18+
permissions:
19+
pages: write
20+
id-token: write
2021
runs-on: ubuntu-latest
2122
steps:
22-
- name: 📂 checkout
23-
uses: actions/checkout@v4
23+
- name: 📂 checkout
24+
uses: actions/[email protected]
25+
26+
- name: 💎 setup ruby
27+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
28+
with:
29+
bundler-cache: true
30+
cache-version: 0
2431

25-
- name: 💎 setup ruby
26-
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
27-
with:
28-
bundler-cache: true
29-
cache-version: 0
32+
- name: 📄 setup pages
33+
id: pages
34+
uses: actions/[email protected]
3035

31-
- name: 📄 setup pages
32-
id: pages
33-
uses: actions/configure-pages@v5
36+
- name: 🔨 install dependencies & build site
37+
uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13
3438

35-
- name: 🔨 install dependencies & build site
36-
uses: actions/[email protected]
37-
38-
- name: ⚡️ upload artifact
39-
uses: actions/upload-pages-artifact@v3
39+
- name: ⚡️ upload artifact
40+
uses: actions/[email protected]
4041

4142
deploy:
4243
needs: build
44+
permissions:
45+
pages: write
46+
id-token: write
4347

4448
environment:
4549
name: github-pages

.github/workflows/lint.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
name: Lint
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
4+
pull_request_target:
85
workflow_dispatch:
96
merge_group:
107

8+
permissions:
9+
contents: write
10+
checks: write
11+
1112
jobs:
1213
lint:
1314
runs-on: ubuntu-latest
1415
steps:
15-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v4.2.2
1617

1718
- name: Setup Ruby
18-
uses: ruby/setup-ruby@v1
19+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
1920
with:
2021
bundler-cache: true
2122

2223
- name: Run linters
23-
if: ${{ github.event_name != 'merge_group' }}
24-
uses: wearerequired/lint-action@v2
24+
uses: wearerequired/lint-action@548d8a7c4b04d3553d32ed5b6e91eb171e10e7bb # v2
25+
if: ${{ github.event_name == 'pull_request_target' }}
2526
with:
26-
auto_fix: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
27+
auto_fix: true
2728
rubocop: true
2829
rubocop_command_prefix: bundle exec
29-
30-
- name: Skip with successful status
31-
if: ${{ github.event_name == 'merge_group' }}
32-
run: exit 0

.github/workflows/stale.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ name: Mark stale PRs
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: "0 12 * * *"
5+
- cron: "0 12 * * *"
66

77
permissions:
88
contents: read
99

1010
jobs:
1111
stale:
1212
permissions:
13-
issues: write # for actions/stale to close stale issues
14-
pull-requests: write # for actions/stale to close stale PRs
13+
issues: write # for actions/stale to close stale issues
14+
pull-requests: write # for actions/stale to close stale PRs
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/stale@v9
18-
with:
19-
stale-pr-message: >
20-
This pull request has been automatically marked as stale because it has not
21-
had recent activity. It will be closed if no further activity occurs.
22-
Thank you for your contributions.
23-
stale-pr-label: "stale"
24-
exempt-pr-labels: "pinned,security,dependencies"
25-
days-before-pr-stale: 30
26-
days-before-pr-close: 7
27-
ascending: true
28-
operations-per-run: 100
17+
- uses: actions/stale@v9.1.0
18+
with:
19+
stale-pr-message: >
20+
This pull request has been automatically marked as stale because it has not
21+
had recent activity. It will be closed if no further activity occurs.
22+
Thank you for your contributions.
23+
stale-pr-label: "stale"
24+
exempt-pr-labels: "pinned,security,dependencies"
25+
days-before-pr-stale: 30
26+
days-before-pr-close: 7
27+
ascending: true
28+
operations-per-run: 100

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
workflow_dispatch:
99
merge_group:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
test:
1316
strategy:
@@ -19,7 +22,7 @@ jobs:
1922
- all
2023
runs-on: ubuntu-latest
2124
steps:
22-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v4.2.2
2326
with:
2427
fetch-depth: 0
2528

@@ -40,7 +43,7 @@ jobs:
4043

4144
- name: Setup Ruby
4245
if: ${{ steps.topics.outputs.changed || steps.collections.outputs.changed || steps.all.outputs.changed }}
43-
uses: ruby/setup-ruby@v1
46+
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
4447
with:
4548
bundler-cache: true
4649

0 commit comments

Comments
 (0)