Skip to content

Commit f74730c

Browse files
authored
Merge pull request #231 from github/jm_actions_cleanup
chore: github actions cleanup
2 parents 51dcaa0 + 379fd02 commit f74730c

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

.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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
- uses: actions/[email protected]
1818
- name: Build the Docker image
1919
run: docker build . --file Dockerfile --platform linux/amd64 --tag stale_repos:"$(date +%s)"

.github/workflows/linter.yaml

Lines changed: 1 addition & 1 deletion
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
uses: actions/[email protected]
2222
with:
2323
# Full git history is needed to get a proper
2424
# list of changed files within `super-linter`

.github/workflows/major-version-updater.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ jobs:
1515
contents: write
1616
steps:
1717
- name: Checkout Repo
18-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
uses: actions/[email protected]
1919
- name: version
2020
id: version
2121
run: |
2222
tag=${GITHUB_REF/refs\/tags\//}
2323
version=${tag#v}
2424
major=${version%%.*}
25-
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
26-
echo "version=${version}" >> "$GITHUB_OUTPUT"
27-
echo "major=${major}" >> "$GITHUB_OUTPUT"
25+
{ echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT"
2826
- name: force update major tag
2927
run: |
3028
git tag v${{ steps.version.outputs.major }}

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
- uses: actions/[email protected]
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
24+
uses: actions/setup-python@v5.3.0
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
id: get_tag_name
4343
run: |
4444
short_tag=$(echo ${{ steps.release-drafter.outputs.tag_name }} | cut -d. -f1)
45-
echo "SHORT_TAG=$short_tag" >> $GITHUB_OUTPUT
45+
echo "SHORT_TAG=$short_tag" >> "$GITHUB_OUTPUT"
4646
create_action_images:
4747
needs: create_release
4848
runs-on: ubuntu-latest
@@ -60,7 +60,7 @@ jobs:
6060
registry: ${{ env.REGISTRY }}
6161
username: ${{ github.actor }}
6262
password: ${{ secrets.GITHUB_TOKEN }}
63-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63+
- uses: actions/[email protected]
6464
- name: Push Docker Image
6565
if: ${{ success() }}
6666
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: "Checkout code"
28-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
uses: actions/[email protected]
2929
with:
3030
persist-credentials: false
3131

@@ -36,7 +36,7 @@ jobs:
3636
results_format: sarif
3737
publish_results: true
3838
- name: "Upload artifact"
39-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
39+
uses: actions/[email protected]
4040
with:
4141
name: SARIF file
4242
path: results.sarif

.github/workflows/stale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
stale:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
14+
- uses: actions/stale@v9.0.0
1515
with:
1616
stale-issue-message: "This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days."
1717
close-issue-message: "This issue was closed because it has been stalled for 35 days with no activity."

.github/workflows/use-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
packages: read
2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
22+
uses: actions/checkout@v4.2.2
2323
- name: Run stale_repos tool
2424
uses: docker://ghcr.io/github/stale_repos:v1
2525
env:

0 commit comments

Comments
 (0)