Skip to content

Commit

Permalink
Update github-actions (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jun 15, 2024
1 parent 7197353 commit a62966e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 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@547a5cc003898d3f8fb1265b4a1f09b15be2f990
- uses: step-security/harden-runner@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd
with:
disable-sudo: true
egress-policy: block
Expand All @@ -24,7 +24,7 @@ jobs:
raw.githubusercontent.com:443
- name: Checkout repo
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
- name: Setup Go
Expand All @@ -34,7 +34,7 @@ jobs:

# Linting
- name: Linting
uses: golangci/golangci-lint-action@8032b262982c71a7cf7a6d2aa823106fc57e545e
uses: golangci/golangci-lint-action@031a2fcd4afedd71ec636137da88172250868de4
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@547a5cc003898d3f8fb1265b4a1f09b15be2f990
- uses: step-security/harden-runner@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd
with:
disable-sudo: true
egress-policy: block
Expand All @@ -59,7 +59,7 @@ jobs:
sum.golang.org:443
- name: Checkout repo
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
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@547a5cc003898d3f8fb1265b4a1f09b15be2f990
- uses: step-security/harden-runner@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd
with:
disable-sudo: true
egress-policy: block
Expand All @@ -92,7 +92,7 @@ jobs:
storage.googleapis.com:443
- name: Checkout repo
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
- name: Setup Go
Expand All @@ -106,15 +106,15 @@ jobs:

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

# Sonar
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@13d84ab51ea6fc29e22a1288ec28cc71fd2eb19e
uses: SonarSource/sonarcloud-github-action@e44258b109568baa0df60ed515909fc6c72cba92
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 @@ -23,24 +23,24 @@ jobs:
fail-fast: false

steps:
- uses: step-security/harden-runner@547a5cc003898d3f8fb1265b4a1f09b15be2f990
- uses: step-security/harden-runner@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443 github.com:443 objects.githubusercontent.com:443 proxy.golang.org:443 storage.googleapis.com:443 sum.golang.org:443 uploads.github.com:443
- name: Checkout repository
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@8f1a6fed33af5212fab8a999d004627ae8901d1b
uses: github/codeql-action/init@bd2ebac9380cbba2fb338fab55bf29a2a18fd436
with:
languages: go

- name: Autobuild
uses: github/codeql-action/autobuild@8f1a6fed33af5212fab8a999d004627ae8901d1b
uses: github/codeql-action/autobuild@bd2ebac9380cbba2fb338fab55bf29a2a18fd436

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8f1a6fed33af5212fab8a999d004627ae8901d1b
uses: github/codeql-action/analyze@bd2ebac9380cbba2fb338fab55bf29a2a18fd436
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@547a5cc003898d3f8fb1265b4a1f09b15be2f990
- uses: step-security/harden-runner@6d3c2fe731c8f225990c8018cb71c337c0d9dfcd
with:
disable-sudo: true
egress-policy: block
Expand All @@ -38,12 +38,12 @@ jobs:
www.bestpractices.dev:443
- name: "Checkout code"
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@641740c608f201e40c4b84e4009a0041be72fac9
uses: ossf/scorecard-action@0a8153a7e8d76932ff5903ccdbed894237ef223d
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@8f1a6fed33af5212fab8a999d004627ae8901d1b
uses: github/codeql-action/upload-sarif@bd2ebac9380cbba2fb338fab55bf29a2a18fd436
with:
sarif_file: results.sarif

0 comments on commit a62966e

Please sign in to comment.