Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 9556e77

Browse files
author
Jason Meridth
authored
Merge pull request #62 from github/jm-ossf-scorecard
chore: add OSSF scorecard github action and README badge
2 parents d25efcd + 19d41d7 commit 9556e77

9 files changed

Lines changed: 65 additions & 17 deletions

File tree

.github/workflows/auto-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
name: Auto label pull requests
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: release-drafter/release-drafter@v6
24+
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
with:

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2727
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v3
28+
uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14
2929
- name: Autobuild
30-
uses: github/codeql-action/autobuild@v3
30+
uses: github/codeql-action/autobuild@d39d31e687223d841ef683f52467bd88e9b21c14
3131
- name: Perform CodeQL Analysis
32-
uses: github/codeql-action/analyze@v3
32+
uses: github/codeql-action/analyze@d39d31e687223d841ef683f52467bd88e9b21c14

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
1818
- name: Build the Docker image
1919
run: docker build . --file Dockerfile --platform linux/amd64 --tag automatic-contributors-pr:"$(date +%s)"

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: Validate PR title
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: amannn/action-semantic-pull-request@v5
23+
- uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
with:

.github/workflows/python-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
python-version: ['3.10', '3.11', '3.12']
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
contents: write
3434
pull-requests: read
3535
steps:
36-
- uses: release-drafter/release-drafter@v6
36+
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348
3737
id: release-drafter
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -55,17 +55,17 @@
5555
IMAGE_NAME: ${{ github.repository }}
5656
steps:
5757
- name: Set up Docker Buildx
58-
uses: docker/setup-buildx-action@v3
58+
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb
5959
- name: Log in to the Container registry
60-
uses: docker/login-action@v3
60+
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
6161
with:
6262
registry: ${{ env.REGISTRY }}
6363
username: ${{ github.actor }}
6464
password: ${{ secrets.GITHUB_TOKEN }}
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
6666
- name: Push Docker Image
6767
if: ${{ success() }}
68-
uses: docker/build-push-action@v5
68+
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
6969
with:
7070
context: .
7171
file: ./Dockerfile
@@ -84,7 +84,7 @@
8484
discussions: write
8585
steps:
8686
- name: Create an announcement discussion for release
87-
uses: abirismyname/create-discussion@v1.2.0
87+
uses: abirismyname/create-discussion@6e6ef67e5eeb042343ef8b3d8d0f5d545cbdf024
8888
env:
8989
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9090
with:

.github/workflows/scorecard.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: Scorecard supply-chain security
3+
on:
4+
workflow_dispatch:
5+
# For Branch-Protection check (for repo branch protection or rules).
6+
# Only the default branch is supported. See
7+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
8+
branch_protection_rule:
9+
# To guarantee Maintained check is occasionally updated. See
10+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
11+
schedule:
12+
- cron: '29 11 * * 6'
13+
push:
14+
branches: ["main"]
15+
16+
permissions: read-all
17+
18+
jobs:
19+
analysis:
20+
name: Merge to Main Scorecard analysis
21+
runs-on: ubuntu-latest
22+
permissions:
23+
security-events: write
24+
id-token: write
25+
26+
steps:
27+
- name: "Checkout code"
28+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
29+
with:
30+
persist-credentials: false
31+
32+
- name: "Run analysis"
33+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
34+
with:
35+
results_file: results.sarif
36+
results_format: sarif
37+
publish_results: true
38+
- name: "Upload artifact"
39+
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
40+
with:
41+
name: SARIF file
42+
path: results.sarif
43+
retention-days: 5
44+
- name: "Upload to code-scanning"
45+
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
46+
with:
47+
sarif_file: results.sarif

.github/workflows/super-linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020

2121
steps:
2222
- name: Checkout Code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2424
with:
2525
fetch-depth: 0
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
2929
pip install -r requirements.txt -r requirements-test.txt
3030
- name: Lint Code Base
31-
uses: super-linter/super-linter@v6
31+
uses: super-linter/super-linter@4758be622215d0954c8353ee4877ffd60111cf8e
3232
env:
3333
DEFAULT_BRANCH: main
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![.github/workflows/linter.yml](https://github.com/github/automatic-contrib-prs/actions/workflows/super-linter.yml/badge.svg)](https://github.com/github/automatic-contrib-prs/actions/workflows/super-linter.yml)
44
[![CodeQL](https://github.com/github/automatic-contrib-prs/actions/workflows/codeql.yml/badge.svg)](https://github.com/github/automatic-contrib-prs/actions/workflows/codeql.yml)
55
[![Docker Image CI](https://github.com/github/automatic-contrib-prs/actions/workflows/docker-image.yml/badge.svg)](https://github.com/github/automatic-contrib-prs/actions/workflows/docker-image.yml)
6+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/github/automatic-contrib-prs/badge)](https://scorecard.dev/viewer/?uri=github.com/github/automatic-contrib-prs)
67

78
Automatically open a pull request for repositories that have no `CONTRIBUTING.md` file for a targeted set of repositories.
89

0 commit comments

Comments
 (0)