Skip to content

Commit 384f385

Browse files
authored
Merge branch 'develop' into dependabot/github_actions/aws-actions/configure-aws-credentials-5.1.0
2 parents 4b24013 + 1eb2e95 commit 384f385

File tree

3 files changed

+77
-5
lines changed

3 files changed

+77
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
38+
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
3939
with:
4040
languages: ${{ matrix.language }}
4141

@@ -45,7 +45,7 @@ jobs:
4545
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4646
# If this step fails, then you should remove it and run the build manually (see below)
4747
- name: Autobuild
48-
uses: github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
48+
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
4949

5050
# ℹ️ Command-line programs to run using the OS shell.
5151
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -58,4 +58,4 @@ jobs:
5858
# ./location_of_script_within_repo/buildscript.sh
5959

6060
- name: Perform CodeQL Analysis
61-
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
61+
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5

.github/workflows/ossf_scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
persist-credentials: false
2828

2929
- name: "Run analysis"
30-
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
30+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
3131
with:
3232
results_file: results.sarif
3333
results_format: sarif
@@ -43,6 +43,6 @@ jobs:
4343

4444
# Upload the results to GitHub's code scanning dashboard.
4545
- name: "Upload to code-scanning"
46-
uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
46+
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
4747
with:
4848
sarif_file: results.sarif
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Update Version File After Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
update-version:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
21+
- name: Get version
22+
id: get_version
23+
run: |
24+
if [ "${{ github.event_name }}" = "release" ]; then
25+
VERSION="${{ github.event.release.tag_name }}"
26+
else
27+
VERSION=$(gh release list --limit 1 --json tagName -q '.[0].tagName')
28+
fi
29+
30+
# Remove 'v' prefix if present
31+
VERSION="${VERSION#v}"
32+
33+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
34+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
35+
env:
36+
GH_TOKEN: ${{ github.token }}
37+
38+
- name: Write version to version.txt
39+
run: echo "${{ env.VERSION }}" > version.txt
40+
41+
- name: Check if changes exist
42+
id: check_changes
43+
run: |
44+
git add version.txt
45+
if git diff --staged --quiet; then
46+
echo "has_changes=false" >> $GITHUB_OUTPUT
47+
else
48+
echo "has_changes=true" >> $GITHUB_OUTPUT
49+
fi
50+
51+
- name: Create PR for version.txt update
52+
if: steps.check_changes.outputs.has_changes == 'true'
53+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
54+
with:
55+
commit-message: "chore: update version.txt to ${{ env.VERSION }}"
56+
branch: update-version-txt-${{ github.run_id }}
57+
title: "chore: update version to ${{ env.VERSION }}"
58+
body: |
59+
This PR updates version.txt to the latest release version.
60+
61+
**Version**: ${{ env.VERSION }}
62+
**Release**: ${{ github.event_name == 'release' && github.event.release.html_url || format('https://github.com/{0}/releases/tag/{1}', github.repository, env.VERSION) }}
63+
**Triggered by**: ${{ github.event_name }}
64+
labels: automation,version-update
65+
delete-branch: true
66+
67+
trigger-changelog:
68+
needs: update-version
69+
permissions:
70+
contents: write # create temporary branch to store changelog changes
71+
pull-requests: write # create PR with changelog changes
72+
uses: ./.github/workflows/reusable_publish_changelog.yml

0 commit comments

Comments
 (0)