Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Update github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored May 9, 2024
1 parent 4ef5e74 commit f8a1fa7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@6c3b1c91e8873ae0c705b0709f957c7a6a5eaf10
- uses: step-security/harden-runner@9ff9d14760a73102d9fa2f47131624137f50ead8
with:
disable-sudo: true
egress-policy: block
Expand All @@ -24,7 +24,7 @@ jobs:
raw.githubusercontent.com:443
- name: Checkout repo
uses: actions/checkout@8459bc0c7e3759cdf591f513d9f141a95fef0a8f
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
fetch-depth: 0
- name: Setup Go
Expand All @@ -34,7 +34,7 @@ jobs:

# Linting
- name: Linting
uses: golangci/golangci-lint-action@692c9c9dba385536b59da68da5aef1775a6f94ea
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64
with:
version: latest
args: --config=./.github/.golangci.yml ./...
Expand All @@ -48,7 +48,7 @@ jobs:
matrix:
go: [ '1.22', '1.21' ]
steps:
- uses: step-security/harden-runner@6c3b1c91e8873ae0c705b0709f957c7a6a5eaf10
- uses: step-security/harden-runner@9ff9d14760a73102d9fa2f47131624137f50ead8
with:
disable-sudo: true
egress-policy: block
Expand All @@ -59,7 +59,7 @@ jobs:
sum.golang.org:443
- name: Checkout repo
uses: actions/checkout@8459bc0c7e3759cdf591f513d9f141a95fef0a8f
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
fetch-depth: 0
- name: Setup Go
Expand All @@ -75,7 +75,7 @@ jobs:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@6c3b1c91e8873ae0c705b0709f957c7a6a5eaf10
- uses: step-security/harden-runner@9ff9d14760a73102d9fa2f47131624137f50ead8
with:
disable-sudo: true
egress-policy: block
Expand All @@ -92,7 +92,7 @@ jobs:
storage.googleapis.com:443
- name: Checkout repo
uses: actions/checkout@8459bc0c7e3759cdf591f513d9f141a95fef0a8f
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
fetch-depth: 0
- name: Setup Go
Expand All @@ -106,15 +106,15 @@ jobs:

# Codecov
- name: Codecov
uses: codecov/codecov-action@1290bddc8851afa46a03b9a73dd9979a415d4c4f
uses: codecov/codecov-action@f691d469fbba7b31a1cb026e3a2f86e28c9dcdb6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: .github/coverage.out

# Sonar
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@6bbd64e0cb2194e04addb429d669a9ee873eeeef
uses: SonarSource/sonarcloud-github-action@19888635fa64d24e533d388efe8264402dfd721b
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ jobs:
fail-fast: false

steps:
- uses: step-security/harden-runner@6c3b1c91e8873ae0c705b0709f957c7a6a5eaf10
- uses: step-security/harden-runner@9ff9d14760a73102d9fa2f47131624137f50ead8
with:
disable-sudo: true
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@27135e314dd1818f797af1db9dae03a9f045786b
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@231aa2c8a89117b126725a0e11897209b7118144
uses: github/codeql-action/init@def4d2cd4e90baac0e70f826be49b93faf6505c5
with:
languages: go

- name: Autobuild
uses: github/codeql-action/autobuild@231aa2c8a89117b126725a0e11897209b7118144
uses: github/codeql-action/autobuild@def4d2cd4e90baac0e70f826be49b93faf6505c5

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@231aa2c8a89117b126725a0e11897209b7118144
uses: github/codeql-action/analyze@def4d2cd4e90baac0e70f826be49b93faf6505c5
8 changes: 4 additions & 4 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id-token: write

steps:
- uses: step-security/harden-runner@6c3b1c91e8873ae0c705b0709f957c7a6a5eaf10
- uses: step-security/harden-runner@9ff9d14760a73102d9fa2f47131624137f50ead8
with:
disable-sudo: true
egress-policy: block
Expand All @@ -38,12 +38,12 @@ jobs:
www.bestpractices.dev:443
- name: "Checkout code"
uses: actions/checkout@8459bc0c7e3759cdf591f513d9f141a95fef0a8f
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@fad9a3cc533bb069b1f01f272f1f630895cd690a
uses: ossf/scorecard-action@8ba5e73d11a5fd0917494d02ab01dfd7866d2191
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -69,6 +69,6 @@ jobs:

# required for Code scanning alerts
- name: "Upload SARIF results to code scanning"
uses: github/codeql-action/upload-sarif@4ebadbc7468649cf79b138f45e20d999351f6ed0
uses: github/codeql-action/upload-sarif@def4d2cd4e90baac0e70f826be49b93faf6505c5
with:
sarif_file: results.sarif
4 changes: 2 additions & 2 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Snyk
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@6c3b1c91e8873ae0c705b0709f957c7a6a5eaf10
- uses: step-security/harden-runner@9ff9d14760a73102d9fa2f47131624137f50ead8
with:
disable-sudo: true
egress-policy: block
Expand All @@ -26,7 +26,7 @@ jobs:
github.com:443
proxy.golang.org:443
- uses: actions/checkout@8459bc0c7e3759cdf591f513d9f141a95fef0a8f
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@8349f9043a8b7f0f3ee8885bf28f0b388d2446e8
env:
Expand Down

0 comments on commit f8a1fa7

Please sign in to comment.