Skip to content

Commit 296323e

Browse files
authored
Merge branch 'master' into dependabot/github_actions/actions/upload-artifact-4.6.2
2 parents fc53d07 + 07cb81d commit 296323e

File tree

3 files changed

+115
-10
lines changed

3 files changed

+115
-10
lines changed

.github/workflows/codeql.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
branches: [ "master" ]
19+
schedule:
20+
- cron: '39 3 * * 4'
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
analyze:
27+
name: Analyze (${{ matrix.language }})
28+
# Runner size impacts CodeQL analysis time. To learn more, please see:
29+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
30+
# - https://gh.io/supported-runners-and-hardware-resources
31+
# - https://gh.io/using-larger-runners (GitHub.com only)
32+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
33+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
34+
permissions:
35+
# required for all workflows
36+
security-events: write
37+
38+
# required to fetch internal or private CodeQL packs
39+
packages: read
40+
41+
# only required for workflows in private repositories
42+
actions: read
43+
contents: read
44+
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
include:
49+
- language: actions
50+
build-mode: none
51+
- language: java-kotlin
52+
build-mode: autobuild
53+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
54+
# Use `c-cpp` to analyze code written in C, C++ or both
55+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
56+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
57+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
58+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
59+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
60+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
61+
steps:
62+
- name: Harden the runner (Audit all outbound calls)
63+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
64+
with:
65+
egress-policy: audit
66+
67+
- name: Checkout repository
68+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69+
70+
# Add any setup steps before running the `github/codeql-action/init` action.
71+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
72+
# or others). This is typically only required for manual builds.
73+
# - name: Setup runtime (example)
74+
# uses: actions/setup-example@v1
75+
76+
# Initializes the CodeQL tools for scanning.
77+
- name: Initialize CodeQL
78+
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
79+
with:
80+
languages: ${{ matrix.language }}
81+
build-mode: ${{ matrix.build-mode }}
82+
# If you wish to specify custom queries, you can do so here or in a config file.
83+
# By default, queries listed here will override any specified in a config file.
84+
# Prefix the list here with "+" to use these queries and those in the config file.
85+
86+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
87+
# queries: security-extended,security-and-quality
88+
89+
# If the analyze step fails for one of the languages you are analyzing with
90+
# "We were unable to automatically build your code", modify the matrix above
91+
# to set the build mode to "manual" for that language. Then modify this step
92+
# to build your code.
93+
# ℹ️ Command-line programs to run using the OS shell.
94+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
95+
- if: matrix.build-mode == 'manual'
96+
shell: bash
97+
run: |
98+
echo 'If you are using a "manual" build mode for one or more of the' \
99+
'languages you are analyzing, replace this with the commands to build' \
100+
'your code, for example:'
101+
echo ' make bootstrap'
102+
echo ' make release'
103+
exit 1
104+
105+
- name: Perform CodeQL Analysis
106+
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
107+
with:
108+
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: 'Checkout Repository'
2525
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
27+
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0

.github/workflows/scorecard.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ on:
1010
# To guarantee Maintained check is occasionally updated. See
1111
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1212
schedule:
13-
- cron: '33 9 * * 0'
14-
workflow_run:
15-
workflows: [Build Master]
16-
branches: [master]
17-
types:
18-
- completed
13+
- cron: '31 21 * * 3'
14+
push:
15+
branches: [ "master" ]
1916

2017
# Declare default permissions as read only.
2118
permissions: read-all
@@ -34,8 +31,8 @@ jobs:
3431
# actions: read
3532

3633
steps:
37-
- name: Harden Runner
38-
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
34+
- name: Harden the runner (Audit all outbound calls)
35+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
3936
with:
4037
egress-policy: audit
4138

@@ -76,6 +73,6 @@ jobs:
7673
# Upload the results to GitHub's code scanning dashboard (optional).
7774
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7875
- name: "Upload to code-scanning"
79-
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
76+
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
8077
with:
8178
sarif_file: results.sarif

0 commit comments

Comments
 (0)