Skip to content

Commit 7c20e75

Browse files
CI workflows: pin actions to SHAs
1 parent 775f3b3 commit 7c20e75

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
29+
with:
30+
persist-credentials: false
2931

3032
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v4
33+
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4
3234
with:
3335
languages: ${{ matrix.language }}
3436

3537
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v4
38+
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4
3739

3840
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v4
41+
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: python-telegram tests
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
tests:
710
runs-on: ubuntu-latest
@@ -11,10 +14,12 @@ jobs:
1114
python-version: ["3.9", "3.10", "3.11", "3.12"]
1215

1316
steps:
14-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
18+
with:
19+
persist-credentials: false
1520

1621
- name: Set up python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v6.2.0
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1823
with:
1924
python-version: ${{ matrix.python-version }}
2025

0 commit comments

Comments
 (0)