forked from github/stale-repos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] switch to umutable actions on ones that allow it (closes 10 security warnings) - [x] solve actionlint issues - [x] group commands instead of instead of individual redirects - [x] double quote variable to prevent globbing and word splitting Signed-off-by: jmeridth <[email protected]>
- Loading branch information
Showing
8 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,6 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- uses: actions/[email protected] | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --platform linux/amd64 --tag stale_repos:"$(date +%s)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
statuses: write | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
uses: actions/[email protected] | ||
with: | ||
# Full git history is needed to get a proper | ||
# list of changed files within `super-linter` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,14 @@ jobs: | |
contents: write | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
uses: actions/[email protected] | ||
- name: version | ||
id: version | ||
run: | | ||
tag=${GITHUB_REF/refs\/tags\//} | ||
version=${tag#v} | ||
major=${version%%.*} | ||
echo "tag=${tag}" >> "$GITHUB_OUTPUT" | ||
echo "version=${version}" >> "$GITHUB_OUTPUT" | ||
echo "major=${major}" >> "$GITHUB_OUTPUT" | ||
{ echo "tag=${tag}"; echo "version=${version}"; echo "major=${major}"; } >> "$GITHUB_OUTPUT" | ||
- name: force update major tag | ||
run: | | ||
git tag v${{ steps.version.outputs.major }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,9 @@ jobs: | |
matrix: | ||
python-version: [3.9, 3.11, 3.12] | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ jobs: | |
id: get_tag_name | ||
run: | | ||
short_tag=$(echo ${{ steps.release-drafter.outputs.tag_name }} | cut -d. -f1) | ||
echo "SHORT_TAG=$short_tag" >> $GITHUB_OUTPUT | ||
echo "SHORT_TAG=$short_tag" >> "$GITHUB_OUTPUT" | ||
create_action_images: | ||
needs: create_release | ||
runs-on: ubuntu-latest | ||
|
@@ -60,7 +60,7 @@ jobs: | |
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- uses: actions/[email protected] | ||
- name: Push Docker Image | ||
if: ${{ success() }} | ||
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
|
@@ -36,7 +36,7 @@ jobs: | |
results_format: sarif | ||
publish_results: true | ||
- name: "Upload artifact" | ||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | ||
uses: actions/[email protected] | ||
with: | ||
name: SARIF file | ||
path: results.sarif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters