Skip to content

Commit aeda4d1

Browse files
authored
Merge pull request #139 from crazy-max/gh-runtime-token
Log GitHub Actions runtime token access controls
2 parents 2891007 + 445d2b3 commit aeda4d1

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {Inputs as BuildxInputs} from '@docker/actions-toolkit/lib/buildx/inputs'
55
import {Context} from '@docker/actions-toolkit/lib/context';
66
import {Docker} from '@docker/actions-toolkit/lib/docker/docker';
77
import {Exec} from '@docker/actions-toolkit/lib/exec';
8+
import {GitHub} from '@docker/actions-toolkit/lib/github';
89
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
910

1011
import * as context from './context';
@@ -16,6 +17,14 @@ actionsToolkit.run(
1617
const inputs: context.Inputs = await context.getInputs();
1718
const toolkit = new Toolkit();
1819

20+
await core.group(`GitHub Actions runtime token ACs`, async () => {
21+
try {
22+
await GitHub.printActionsRuntimeTokenACs();
23+
} catch (e) {
24+
core.warning(e.message);
25+
}
26+
});
27+
1928
await core.group(`Docker info`, async () => {
2029
try {
2130
await Docker.printVersion();

0 commit comments

Comments
 (0)