Skip to content

Commit 0edd7ae

Browse files
authored
Merge pull request #1 from github/general-updates
General Updates
2 parents da2f70d + 9eaa4d9 commit 0edd7ae

File tree

6 files changed

+43
-29
lines changed

6 files changed

+43
-29
lines changed

.github/workflows/acceptance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
has_change: ${{ steps.diff.outputs.has_change}}
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
2121

2222
- id: fetch-base
2323
if: github.event_name == 'pull_request'
@@ -45,7 +45,7 @@ jobs:
4545
4646
# If the diff file is not empty, it has changes.
4747
[ -s diff.txt ] && echo "::set-output name=has_change::true" || echo "::set-output name=has_change::false"
48-
48+
4949
- name: set has_change to true for push to main/master
5050
if: github.event_name == 'push'
5151
run: echo "::set-output name=has_change::true"
@@ -67,11 +67,11 @@ jobs:
6767
6868
- name: Check out code
6969
if: ${{ needs.changes.outputs.has_change == 'true' }}
70-
uses: actions/checkout@v2
70+
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
7171

7272
# Use Docker layer caching for 'docker build' and 'docker-compose build' commands.
7373
# https://github.com/satackey/action-docker-layer-caching/releases/tag/v0.0.11
74-
- uses: satackey/action-docker-layer-caching@46d2c640b1d8ef50d185452ad6fb324e6bd1d052
74+
- uses: satackey/action-docker-layer-caching@46d2c640b1d8ef50d185452ad6fb324e6bd1d052 # pin@46d2c640b1d8ef50d185452ad6fb324e6bd1d052
7575
if: ${{ needs.changes.outputs.has_change == 'true' }}
7676
continue-on-error: true
7777

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,17 @@ jobs:
2424
language: [ 'ruby' ]
2525

2626
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v2
27+
- name: Checkout repository
28+
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
2929

30-
# Initializes the CodeQL tools for scanning.
31-
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v1
33-
with:
34-
languages: ${{ matrix.language }}
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@27ea8f8fe5977c00f5b37e076ab846c5bd783b96 # pin@v2
33+
with:
34+
languages: ${{ matrix.language }}
3535

36-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
37-
# If this step fails, then you should remove it and run the build manually (see below)
38-
- name: Autobuild
39-
uses: github/codeql-action/autobuild@v1
40-
#- run: |
41-
# make bootstrap
42-
# make release
36+
- name: Autobuild
37+
uses: github/codeql-action/autobuild@27ea8f8fe5977c00f5b37e076ab846c5bd783b96 # pin@v2
4338

44-
- name: Perform CodeQL Analysis
45-
uses: github/codeql-action/analyze@v1
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@27ea8f8fe5977c00f5b37e076ab846c5bd783b96 # pin@v2

.github/workflows/lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515

1616
steps:
1717
- name: Check out code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
1919

20-
# https://github.com/ruby/setup-ruby/releases/tag/v1.87.0
21-
- uses: ruby/setup-ruby@cf1a6dd2d8563b59c7007e381836fd252ab2ac5b
20+
- uses: ruby/setup-ruby@8029ebd6e5bd8f4e0d6f7623ea76a01ec5b1010d # [email protected]
2221
with:
2322
ruby-version: 2.7.5
2423
bundler-cache: true

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515

1616
steps:
1717
- name: Check out code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
1919

20-
# https://github.com/ruby/setup-ruby/releases/tag/v1.87.0
21-
- uses: ruby/setup-ruby@cf1a6dd2d8563b59c7007e381836fd252ab2ac5b
20+
- uses: ruby/setup-ruby@8029ebd6e5bd8f4e0d6f7623ea76a01ec5b1010d # [email protected]
2221
with:
2322
ruby-version: 2.7.5
2423
bundler-cache: true

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 GitHub
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Your `entitlements-app` config `config/entitlements.yaml` runs through ERB interpretation automatically. You can extend your entitlements configuration to load plugins like so:
1010

11-
```
11+
```ruby
1212
<%-
1313
unless ENV['CI_MODE']
1414
begin
@@ -27,7 +27,7 @@ Your `entitlements-app` config `config/entitlements.yaml` runs through ERB inter
2727
2828
You can then define `lib/entitlements-and-plugins` like so:
2929
30-
```
30+
```ruby
3131
#!/usr/bin/env ruby
3232
# frozen_string_literal: true
3333
@@ -48,7 +48,7 @@ Any plugins defined in `lib/entitlements-and-plugins` will be loaded and used at
4848
4949
You can add automatic auditing to a separate GitRepo by enabling the following `entitlements.yaml` config:
5050
51-
```
51+
```ruby
5252
<%-
5353
# NOTE: GITREPO_SSH_KEY must be base64 encoded.
5454
sshkey = ENV.fetch("GITREPO_SSH_KEY")

0 commit comments

Comments
 (0)