Skip to content

Commit

Permalink
Bump actions in workflow files (#89)
Browse files Browse the repository at this point in the history
* Bump actions in workflow files

actions/checkout@v3 to 4
github/codeql-action/init@v2 to 3
github/codeql-action/autobuild@v2 to 3
github/codeql-action/analyze@v2 to 3

* Create dependabot.yml

github-actions
  • Loading branch information
sinsukehlab authored Apr 7, 2024
1 parent e975b5d commit e9a138f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/jarvis-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check GitHub Status
# Source of GitHub Action in line 30:
# https://github.com/dduzgun-security/secure-code-game-action
uses: dduzgun-security/secure-code-game-action@dc70b85ad674f6e93657401f3933622870372093 # v1.0
with:
who-to-greet: "Jarvis, obviously ..."
get-token: "token-4db56ee8-dbec-46f3-96f5-32247695ab9b"
get-token: "token-4db56ee8-dbec-46f3-96f5-32247695ab9b"
4 changes: 2 additions & 2 deletions .github/workflows/jarvis-hack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check for insecure actions
run: |
if grep -q "uses: dduzgun-security/secure-code-game-action@" $GITHUB_WORKSPACE/.github/workflows/jarvis-code.yml; then
echo "Insecure action detected. Please remove it from your workflow."
exit 1
fi
fi

0 comments on commit e9a138f

Please sign in to comment.