File tree Expand file tree Collapse file tree 4 files changed +29
-18
lines changed
Expand file tree Collapse file tree 4 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 1+ # Agents
2+
3+ <!-- https://agents.md -->
4+
5+ ## GitHub Actions Workflows
6+
7+ - All GitHub Actions should be pinned versions (SHA-1) to avoid breaking changes.
8+ - If using ` actions/checkout ` , it should have ` persist-credentials: false ` set.
9+ - Always use the latest available versions of GitHub Actions.
10+ - GitHub Actions filenames should be all lowercase, with dashes separating words.
11+ - All GitHub Actions workflows should always be formatted with Prettier.
Original file line number Diff line number Diff line change 1010 - main
1111 - " !dependabot/**"
1212
13- permissions : # added using https://github.com/step-security/secure-workflows
13+ permissions : # added using https://github.com/step-security/secure-workflows
1414 contents : read
1515
1616jobs :
@@ -23,13 +23,13 @@ jobs:
2323 security-events : write
2424
2525 steps :
26- - name : Checkout repository
27- uses : actions/checkout@v5
26+ - name : Checkout repository
27+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2828
29- - name : Initialize CodeQL
30- uses : github/codeql-action/init@v3
31- with :
32- languages : " javascript"
29+ - name : Initialize CodeQL
30+ uses : github/codeql-action/init@2152c31696c8409983789c80ab57c4d91465a2fc # v4
31+ with :
32+ languages : " javascript"
3333
34- - name : Perform CodeQL Analysis
35- uses : github/codeql-action/analyze@v3
34+ - name : Perform CodeQL Analysis
35+ uses : github/codeql-action/analyze@2152c31696c8409983789c80ab57c4d91465a2fc # v4
Original file line number Diff line number Diff line change 1- name : ' Dependency Review'
1+ name : " Dependency Review"
22on : [pull_request]
33
44permissions :
88 dependency-review :
99 runs-on : ubuntu-latest
1010 steps :
11- - name : ' Checkout Repository'
12- uses : actions/checkout@v5
11+ - name : " Checkout Repository"
12+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
1313 with :
1414 persist-credentials : false
1515
16- - name : ' Dependency Review'
17- uses : actions/dependency-review-action@v4
16+ - name : " Dependency Review"
17+ uses : actions/dependency-review-action@46a3c492319c890177366b6ef46d6b4f89743ed4 # v4
Original file line number Diff line number Diff line change @@ -9,20 +9,20 @@ permissions:
99jobs :
1010 build :
1111 permissions :
12- contents : read # for actions/checkout to fetch code
13- statuses : write # for github/super-linter/slim to mark status of each linter run
12+ contents : read # for actions/checkout to fetch code
13+ statuses : write # for github/super-linter/slim to mark status of each linter run
1414 name : Lint Code Base
1515 runs-on : ubuntu-latest
1616
1717 steps :
1818 - name : Checkout Code
19- uses : actions/checkout@v5
19+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2020 with :
2121 fetch-depth : 0
2222 persist-credentials : false
2323
2424 - name : Lint Code Base
25- uses : super-linter/super-linter/slim@v8
25+ uses : super-linter/super-linter/slim@f6d06a003575dde14f917e642302cf1251f28f4a # v8
2626 env :
2727 DEFAULT_BRANCH : main
2828 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments