Skip to content

Commit b496b7d

Browse files
authored
Merge pull request #131 from github/jm-remediations-from-ossf-run
chore: security remediation after turning on ossf scorecoard
2 parents 477d9ce + e31e848 commit b496b7d

9 files changed

+18
-18
lines changed

.github/workflows/auto-labeler.yml

+1-1
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-analysis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
language: ['python']
3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
4242
# Initializes the CodeQL tools for scanning.
4343
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@v3
44+
uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14
4545
with:
4646
languages: ${{ matrix.language }}
4747
- name: Autobuild
48-
uses: github/codeql-action/autobuild@v3
48+
uses: github/codeql-action/autobuild@d39d31e687223d841ef683f52467bd88e9b21c14
4949
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@v3
50+
uses: github/codeql-action/analyze@d39d31e687223d841ef683f52467bd88e9b21c14

.github/workflows/docker-image.yml

+1-1
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 stale_repos:"$(date +%s)"

.github/workflows/linter.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
statuses: write
1919
steps:
2020
- name: Checkout Code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2222
with:
2323
# Full git history is needed to get a proper
2424
# list of changed files within `super-linter`
@@ -28,7 +28,7 @@ jobs:
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 }}

.github/workflows/pr-title.yml

+1-1
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-package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
matrix:
2020
python-version: [3.9, 3.11, 3.12]
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install dependencies

.github/workflows/release.yml

+5-5
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/stale_repos # different than repo name (underscore instead of dash)
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 }}
6565
- uses: actions/checkout@v4
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/use-action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
ORGANIZATION: github
3232
INACTIVE_DAYS: 1
3333
- name: Create issue
34-
uses: peter-evans/create-issue-from-file@v5
34+
uses: peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94
3535
with:
3636
title: Stale repository report
3737
content-filepath: ./stale_repos.md

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#checkov:skip=CKV_DOCKER_2
22
#checkov:skip=CKV_DOCKER_3
3-
FROM python:3.12-slim
3+
FROM python:3.12-slim@sha256:2be8daddbb82756f7d1f2c7ece706aadcb284bf6ab6d769ea695cc3ed6016743
44
LABEL com.github.actions.name="stale-repos" \
55
com.github.actions.description="Find stale repositories in a GitHub organization." \
66
com.github.actions.icon="check-square" \

0 commit comments

Comments
 (0)